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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DanielCarvalho
Helper III
Helper III

Cumulative running total based on a distinct value from another column

Hey Community,

 

I have the following time line chart to track the running totals by day for my data:

DanielCarvalho_0-1679390848360.png

As you see for the closed cumulative is working fine but for the created one its not adding up and its showing the value for that specific day. The only difference between the 2 is that on the closed im just counting all whilst on the created as the data is repeated I want to only count distinct values from another column for example:

DanielCarvalho_1-1679390982691.png

As this is the same case id, i want this to only count as 1 ticket and not 5 tickets. The measures i created are the following:

 

Closed Cumulatitive = CALCULATE(COUNT(TICKET_DASHBOARD_GAVATAR_HISTORY[CLOSUREDATE_FORMATTED]),filter(allselected('CALENDAR'),'CALENDAR'[DATE] <=max(TICKET_DASHBOARD_GAVATAR_HISTORY[MONTHLY_STATUS_DATE])))
 
Created Cumulatitive = CALCULATE(COUNT(TICKET_DASHBOARD_GAVATAR_HISTORY[ACTIONDATE_FORMATTED]),DISTINCT(TICKET_DASHBOARD_GAVATAR_HISTORY[CASEID]),filter(allselected('CALENDAR'),'CALENDAR'[DATE] <=max('CALENDAR'[DATE])))
 
By adding distinct of case id it stops being a running total and becomes a total by day. How can I better adapt the first measure to apply to the second one?
 
Kind Regards, 
Daniel
0 REPLIES 0

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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