cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
newbie9292
Helper I
Helper I

Cummulative total for drill down view

I am new to power bi and trying to get the cummulative total for my data.

newbie9292_1-1635695444969.png

 

With my current DAX query I am able to get the cummulative total for the topmost level but the same is not working when I drill down to the next level. Please help. 

This is my DAX query : 
Umsatz_KUM =
CALCULATE (
SUM ( Drill_down_data[Umsatz_All] ),
FILTER (
ALLSELECTED(Drill_down_data),
Drill_down_data[Monat]<=MAX(Drill_down_data[Monat])
)
)
1 REPLY 1
TheoC
Super User
Super User

Hi @newbie9292 

 

If you simply your measure and use a Date table, it will certainly assist. Please try the following:

 

Measure = TOTALYTD ( SUM ( Drill_down_data[Umsatz_All] ) , Dates[Date] )

 

Otherwise, if you don't have a Date table, you can use:

 

Measure = TOTALYTD ( SUM ( Drill_down_data[Umsatz_All] ) , Drill_down_data[Date] )

 

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

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!