+ Reply to Thread
Results 1 to 2 of 2

Divide sum of column with fixed value in Power PIvot

  1. #1
    Registered User
    Join Date
    01-14-2016
    Location
    Celje, Slovenia
    MS-Off Ver
    Office 365
    Posts
    3

    Divide sum of column with fixed value in Power PIvot

    Hello lovely Excel people,

    I have a question on how to create a measure (measures) to calculate the division between sum of working hours from one table with fixed monthly working hours in another table.
    Let me explain. In the sample file I am attaching, I have two tables. One is on the sheet input data where working hours for an employee on specific dates in a month are written. When a worker was actually working, number of hours he/she spent, on the project we are analysing, for that worker are written. In the other table (hours by month) there is information how much working hours (obviously calculated from working days in a month) an employee had to workin a specific month. The connection between two tables is in the column month year.

    What I am trying to calculate is the share of hours a worker spent on our project in contrast to the hours he/she had to do in one month. Therefore the sum of hours in a month has to be divided by the complete working hours in a month. For example: if a worker in jan 2021 worked 100 hours on our project and his monthly quota is 168 hours, he spent almost 60% of his working time on the project (100/168*100%).

    I know how to do it in Excel, but am stuck in a no man's land on how to do it in Power PIvot and later on in Power BI.

    Thank you for your help already in advance.

    Regards, MArko
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Divide sum of column with fixed value in Power PIvot

    • Open the Power Pivot window in Excel.
    • Click on the "Calculated Fields" button in the "Calculations" group on the "Home" tab.
    • In the "Name" field, enter a name for the calculated field, for example, "DividedColumn".
    • In the "Formula" field, enter the formula to divide the sum of the column by the fixed value, for example, "SUM([Column])/10" to divide the sum of the "Column" by 10.
    • Click "OK" to create the calculated field.

    Once the calculated field is created, you can use it in your PivotTable or PivotChart. Drag the calculated field to the Values area of the PivotTable or PivotChart and select the appropriate aggregation function (such as "Sum" or "Average") to display the result of the calculation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Power Query/Power Pivot Conditional Column creation & chart
    By mz_h in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-12-2020, 06:07 PM
  2. [SOLVED] Power Pivot does not load new column added in Power query
    By ibuhary in forum Excel General
    Replies: 12
    Last Post: 02-19-2019, 03:53 AM
  3. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  4. [SOLVED] Add rows in Alternate columns, divide by fixed rate per column.
    By jomili in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-12-2017, 06:46 PM
  5. Power Pivot 2010 DAX Formula to divide between two different tables
    By stevemkiidub in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2016, 01:51 PM
  6. [SOLVED] Create a measure in Power Pivot to divide by value in subtotal row of the PP
    By rv02 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-22-2015, 11:22 AM
  7. Pivot - Divide by fixed value
    By CzechCzar in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-04-2013, 02:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1