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
newbie9292
Helper II
Helper II

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 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.