Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I'm having a hard time getting a running total on a measure that depends on mutiple measures. My typical pattern isn't working:
Measure 2: Calculate([Measure 1], DATESYTD(Calendar[Date])) or
Measure 2: Calculate([Measure 1], Filter(AllSelected(Calendar), Calendar[Date] <= MAX(Calendar[Date]))
Due to the sensitive nature of the data I can't share my pbix file, however I can share the output of the table to give insight into what I'm trying to do. I have the following measures calculate per week ending (as shown in the screenshot), this all calculates as expected. I have a calendar table with a 1:M relationship to my payroll table and a week ending column in the calendar table.
Measures:
1. [Avg. Hours Over 40] = (DIVIDE([Hours By Class], [Employee Count By Class], 0)) - 40
[Hours By Class] = SUM(Hours)
[Employee Count By Class] = CALCULATE(DISTINCTCOUNT(Payroll[Employee]), Filter(Payroll, Payroll[Class] IN {1,2,3,4}))
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Thank you for taking a look, here is what I get with this measure:
Hi,
Share the link from where i can download your PBI file.
Hi,
You may download my PBI file from here.
Hope this helps.
This is really amazing, thank you for this! For my understanding and learning would you be willing to walk me through how you arrived at this solution?
I see you surface a table using CALCULATETABLE, and then SUMMARIZE it, but I'm not fully understanding the design pattern here and how it works.
Again, thank you!
You are welcome. Sometime later please.
@Anonymous
Based on these screens, I guess the problem is you created a running total on the [Increase Hours] measure. Try change the measure to a column if possible, If you really want a measure. Can you share the sample pbix with us, so can we make some test on it.
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |