Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello!
I need help with the above file. I am trying to write a function within PowerPivot that will lookup 'Activity Code' from [Activity Info] and put the corresponding value 'Minutes to Complete' for each activity code. The end goal with this is to build a Pivot Table that will multiply the count of each activity code with the minutes it takes to complete that activity. This will be scaled up for each employee (this part of the model is working) so that I am able to measure workload.
I'm not entirely sure how the Pivot Table interacts with PowerPivot, so I would love any solution that results in a Pivot Table column containing the product of minutes spent on an activity with the count of said activity.
Thank you in advance!
Solved! Go to Solution.
Hello @mramstead1 !
For this sort of calculation, I would suggest writing a measure that:
To do this, I would create two measures:
Activity Count =
COUNTROWS ( 'Activity Report' )
Total Minutes =
SUMX (
SUMMARIZE( 'Activity Report', ActivityInfo[Minutes to Complete] ),
ActivityInfo[Minutes to Complete]
* [Activity Count]
)
You can then create a PivotTable with 'ActivityInfo'[Activity Code] on the rows, with the Total Minutes measure displayed.
This measure should work correctly with any other filters you might want to apply.
I've knocked this together in a copy of your Excel file, with a 2nd PivotTable displaying the two measures (attached).
Is that the sort of thing you were looking for?
Regards,
Owen
Hello @mramstead1 !
For this sort of calculation, I would suggest writing a measure that:
To do this, I would create two measures:
Activity Count =
COUNTROWS ( 'Activity Report' )
Total Minutes =
SUMX (
SUMMARIZE( 'Activity Report', ActivityInfo[Minutes to Complete] ),
ActivityInfo[Minutes to Complete]
* [Activity Count]
)
You can then create a PivotTable with 'ActivityInfo'[Activity Code] on the rows, with the Total Minutes measure displayed.
This measure should work correctly with any other filters you might want to apply.
I've knocked this together in a copy of your Excel file, with a 2nd PivotTable displaying the two measures (attached).
Is that the sort of thing you were looking for?
Regards,
Owen
@OwenAuger you beauty! This worked splendidly, I greatly appreciate your time and help!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |