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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Cumulative total tooltip

Hi all, 

 

I am trying to create a tool tip that will show the running total of downloads & cannot seem to get it right. I am using a line chart to show date and total downloads for each date:

 

Date          Downloads

1/1/21            50

1/2/21            60

1/3/21            70

1/4/21             80

 

any suggestions on how to accomplish this?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Measure

Without date table

Cumm = CALCULATE(SUM(Table[downloads]),filter(allselected(Table),Table[Date] <=max(Table[Date])))

 

With date table

Cumm = CALCULATE(SUM(Table[downloads]),filter(allselected(date),date[date] <=max(date[Date])))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
Tahreem24
Super User
Super User

@Anonymous Try this DAX measure:

Cumulative Sum = CALCULATE(SUM(Table2[Downloads]),FILTER(ALL(Table2),Table2[Date]<=MAX(Table2[Date])))
 
Capture.JPG
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@Anonymous , Measure

Without date table

Cumm = CALCULATE(SUM(Table[downloads]),filter(allselected(Table),Table[Date] <=max(Table[Date])))

 

With date table

Cumm = CALCULATE(SUM(Table[downloads]),filter(allselected(date),date[date] <=max(date[Date])))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak  thank you, I created a variable for MAX date and was trying to use that but it wasnt working properly, this was perfect 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.