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
I am trying to create a visual which shows the cumulative total. I have tried creating a quick measure using running total, but this is the result I get:
My base value is the count, and the field is the month. It seems to be calculating backwards for some reason. I have tried amending the formula as well, but nothing I do seems to change the results.
This is the desired result:
Any suggestions as to what is wrong with my measure or what formula I can use to achieve this?
Solved! Go to Solution.
Hi @Anonymous
If it's calculating backwards, you may need to check that your "Month" column is formatted as "Month Year". Once you do that, you can use a measure like below:
Measure = TOTALYTD ( SUM ( Table[Column] ) , Table[Date] )
This is the tabular view:
Hope this helps!
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Hi @Anonymous ,
I have created a simple smaple, please refer to it to see if it helps you.
Add an index in Power Query.
Create a measure.
Measure = CALCULATE(SUM('Table'[count]),FILTER(ALL('Table'),'Table'[Index]<=SELECTEDVALUE('Table'[Index])))
Or you can use 'table'[date]<=selectedvalue('table'[date]) replace the index part.
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I have created a simple smaple, please refer to it to see if it helps you.
Add an index in Power Query.
Create a measure.
Measure = CALCULATE(SUM('Table'[count]),FILTER(ALL('Table'),'Table'[Index]<=SELECTEDVALUE('Table'[Index])))
Or you can use 'table'[date]<=selectedvalue('table'[date]) replace the index part.
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Try this one It will help to you Your scenarios,
Thanks,
Thennarasu R
Hello,
I have tried your solution, unfortunately it seems to be adding my previous results (refer below) to the column (latest result)
Previous result:
Latest result:
Hi @Anonymous
If it's calculating backwards, you may need to check that your "Month" column is formatted as "Month Year". Once you do that, you can use a measure like below:
Measure = TOTALYTD ( SUM ( Table[Column] ) , Table[Date] )
This is the tabular view:
Hope this helps!
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Hello Theo,
Thank you for helping me out with this. However, I am still facing the same issue.
This is how I've amended the formula:
My date column is formatted in month year format, but my results remain the same.
Also, if it matters, I am trying to count the number of new customers, and while SUM does not work, COUNTA seems to produce some form of result, even if not in the correct format. I'm still not very sure what is wrong my workings. I really appreciate you helping me through this.
@Anonymous did you try the other option I provided?
I'd recommend changing your COUNT to a measure like Count Customers = COUNT ( Consolidated[New Customer] )
From there, try either:
1. Measure = TOTALYTD ( [Count Customers] ) , Table[Date] )
or
2. CALCULATE ( [Count Customers] ) , 'Table'[Date] <= MIN ( 'Table'[Date] ) )
Of those don't work, it might be best you provide some dummy data.
Best of luck!
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Hello Theo,
I did give your other solution a try, but no matter what I do, my results remain unchanged.
I'm thinking that the date seems to be the issue here. The date column was obtained using the following codes:
= Table.AddColumn(#"Added New Cust in FY", "Cust Join Date", each if List.Contains({"95", "96", "97", "98", "99"}, Text.Start([CustID],2))
then Text.Middle([CustID],2,2) & "/" & "19" & Text.Start([CustID],2)
else Text.Middle([CustID],2,2) & "/" & "20" & Text.Start([CustID],2))
The date was derieved by concatenating the first 2 digits of a text column along with other texts, then changing the data type to date after the column was created. I experienced no issue while doing so. Perhaps you could identify an issue that I am unable to see regarding my date column? Thank you!
@Anonymous just in case you have complications with the above, another way of calculating cumulatives in this scenario is with the following measure:
Hope this helps!
Theo 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |