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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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