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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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