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.
Thanks in advance for your help!!
I have a simple measure - PivotWrvus = SUM('ProductivityMeasures'[WRVUs]).
But when I try to do running total based on 2 methods below the var RunningTotal2 is working perfectly based on what am selecting. But RunningTotal1 is giving wrong values. I think it is giving me the overall sum. How to do running total for a calculated measure?
It's because i have a calulcated measure like this, i want to do running total for t he below calculated measure. So I did a simple example on wrvus but it's not working for me.
Calculated measure that I have to use for running total:
My calculate measure that I need to
Solved! Go to Solution.
Hi @Kalaivani ,
When you do a sumx you are calculating the sum of all values in a table this means that you are calculating the values for al the data in YearMonthDate column, can be incorrect on my analysis but this seems to be a date value in order to get the sumx to work properly you have to do an aggregation on Month something similar to this:
VAR RunningTotal1 =
SUMX (
SUMMARIZE (
FILTER (
ALLSELECTED ( 'CalendarTable' ),
'CalendarTable'[YearMonthDate] <= MAX ( 'CalendarTable'[YearMonthDate] )
),
'CalendarTable'[Year-Month],
"PivotValue", [PivotWrvus]
),
[PivotValue]
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Kalaivani ,
When you do a sumx you are calculating the sum of all values in a table this means that you are calculating the values for al the data in YearMonthDate column, can be incorrect on my analysis but this seems to be a date value in order to get the sumx to work properly you have to do an aggregation on Month something similar to this:
VAR RunningTotal1 =
SUMX (
SUMMARIZE (
FILTER (
ALLSELECTED ( 'CalendarTable' ),
'CalendarTable'[YearMonthDate] <= MAX ( 'CalendarTable'[YearMonthDate] )
),
'CalendarTable'[Year-Month],
"PivotValue", [PivotWrvus]
),
[PivotValue]
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @MFelix Thanks so so much for your response. I tried your solution and it worked perfectly for me!
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 |
---|---|
64 | |
63 | |
52 | |
36 | |
36 |
User | Count |
---|---|
80 | |
71 | |
58 | |
45 | |
44 |