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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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