Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Cumulative DAX Measure Error

Hi Experts

 

I cannot see the error in my cumulative DAX Measure - See sample data. The first table in the below give the standard hourly units sold in the second table i am trying to work out the cumulative sale.....

 

https://www.dropbox.com/s/fc0x835a4tgxnx1/Tes.pbix?dl=0 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

1. if you want to use ALL function, then please try to only remove the filter for the specific column. If you use ALL function for the whole table, I think it will also remove the filter for currency.

2. for the specific currency, there is no result for the calculated column. In order to do cumulative calculation, please try to use another column in another table that represents the hour.

3. Because you said do not upload the file, I don't upload the file. I just suggest like above.

 

thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

9 REPLIES 9
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I am not sure if I understood your question correctly, but please check the below picture and the sample pbix file's link down below.

 

Picture4.png

Number of units sold =
SUMX(FACTSalesOrderTable,1)
 
Number of unit sold cumulate =
CALCULATE (
[Number of units sold],
FILTER (
ALL ( FACTSalesOrderTable ),
FACTSalesOrderTable[Created_Hour] <= MAX ( FACTSalesOrderTable[Created_Hour] )
)
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

hi Kim - have a look at this link and the cumulative table...in this file..
https://www.dropbox.com/s/i30tqiy7p0j1z93/Test.pbix?dl=0 

 

PS Do not re post the same file. Just the dax where the error is and steps please.

 

 

Hi, @Anonymous 

 

1. if you want to use ALL function, then please try to only remove the filter for the specific column. If you use ALL function for the whole table, I think it will also remove the filter for currency.

2. for the specific currency, there is no result for the calculated column. In order to do cumulative calculation, please try to use another column in another table that represents the hour.

3. Because you said do not upload the file, I don't upload the file. I just suggest like above.

 

thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Uplaod the file... and remove it once i have downloaded it - ill message you,,....still confused....thanks

Anonymous
Not applicable

Hold on - ignore last message.

Anonymous
Not applicable

Hi Kim. Can you do the Cumulative of the sum of the Created hours in the first table....

Hi, @Anonymous 

I could not.

Because it is an implicit measure and I could not do the cumulative sum by using the implicit measure.

And I did not understand what was the meaning of that implicit measure. It was just summing the numbers. I could understand it if the implicit measure was COUNT. However, I could not understand what was the meaning of SUM. 

If you still want to calculate the cumulative, then I suggest creating the explicit measure and use this to create the cumulate calculation. 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi Kim Just posted a new file....i am trying to get the second table correct as a cumulative

Anonymous
Not applicable

Hi Kim 

 

Can you kindly assist with the following

https://community.powerbi.com/t5/Desktop/Items-Per-Order-DAX-Measure/m-p/1848229#M714191

 

And thanks for all your help...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.