cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TheShinigami
New Member

DAX formula for cumulative sales in the correct sorting order

 

Hi,

 

I am trying to show the cumulative net sales but as you look at the date, the numbers are in descending order. It should be in ascending order because after each date the sales numbers increase.   Is there a formula to fix this?

 

 

 

 

 

1 ACCEPTED SOLUTION
Tanushree_Kapse
Solution Supplier
Solution Supplier

Hi @TheShinigami ,

 

Use the following measure to calculate the cummultive Sales:

Measure=  CALCULATE([New Sales - Actual CP ], FILTER(ALLSELECTED(Dim InvoiceDate [Invoice_Date]), Dim InvoiceDate [Invoice_Date] <= MAX(Dim InvoiceDate [Invoice_Date])))

 

 

Mark this as a solution, if I answered your question. Kudos are always appreciated.

Thanks!

View solution in original post

3 REPLIES 3
Tanushree_Kapse
Solution Supplier
Solution Supplier

Hi @TheShinigami ,

 

Use the following measure to calculate the cummultive Sales:

Measure=  CALCULATE([New Sales - Actual CP ], FILTER(ALLSELECTED(Dim InvoiceDate [Invoice_Date]), Dim InvoiceDate [Invoice_Date] <= MAX(Dim InvoiceDate [Invoice_Date])))

 

 

Mark this as a solution, if I answered your question. Kudos are always appreciated.

Thanks!

View solution in original post

God blessssssssss you!!!!!!!!!!

 

 

I need to have you on speed dial 😋

Happy to help!

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!