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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Find Cumulative total

Hi All,

 

I try to find cummulative total but i'm getting wrong result

 

herewith i have attached sample data 

 

Sample Data Click here   

 

i have used

 

Cumm.Total= CALCULATE( SUM('table'[ Rep currency]),
FILTER(
ALLEXCEPT('table', 'table''[L2]),
'table''[Date]<=MAX( table''[Date])
))

 

Can anyone recommend a solution for this?

 

 

 

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

You can try like this:

Cumm.Total =
CALCULATE (
    SUM ( 'table'[ Rep currency] ),
    FILTER ( ALLSELECTED ( 'table' ), 'table'[Date] <= MAX ( 'table'[Date] ) )
)

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Which column do you want to run the calculation on - A or B?  Why do both those columns have the same heading? From when should the accumulation start - January of each year or since the very inception?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

You can try like this:

Cumm.Total =
CALCULATE (
    SUM ( 'table'[ Rep currency] ),
    FILTER ( ALLSELECTED ( 'table' ), 'table'[Date] <= MAX ( 'table'[Date] ) )
)

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes. Get a calendar table. You should never attempt time intelligence calculations without a calendar table. 

here are some of my articles 

https://exceleratorbi.com.au/power-pivot-calendar-tables/

 

https://exceleratorbi.com.au/dax-time-intelligence-beginners/

 

 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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