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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Running Total

Hi guys,

 

I have the below graph and I want to show the running total in it.

 

Please let me know the best approach for this.

 

i mean the open ticket for Dec should be 98, for Jan it should be (123-77) + 98 = 144, for Feb (128-145) + 144= 127 and so on. In the end for june i should get 83 as open.

 

is there any DAX calculation for this or should I consider creating a quick measure?

 

Regards,

Himanshu

 

 

 

Himanshu_13_0-1624548651778.png

 

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous,

Can you please share some dummy data with a similar data structure and expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Fowmy
Super User
Super User

@Anonymous 

You will need to have measure something like:

Running Total Closed = 
CALCULATE (
        [OpenTicketsMeasure],
        FILTER (
            ALL(dates),
            dates[date] < = max(dates[date])
        )
)
    
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

I created the below measure but its not giving correct value.

 

Running Total Closed1 =
CALCULATE (
[Non-Dev Tags],
FILTER (
ALL('DAX Date Table'[Date]),
'DAX Date Table'[Date] <= max('DAX Date Table'[Date])
)
)
 
For Jan it should be 144 and 85 on last month i.e 85 but its coming wrong.
 
It is capturing the created count only. 
 
Note : I have one active relationship(created) and one inactive(closed).
 
Please advice !!!
 
 
Himanshu_13_0-1624557358341.png

 

Try:

Running Total Closed1 =
CALCULATE (
[Non-Dev Tags],
FILTER (
ALL('DAX Date Table'),
'DAX Date Table'[Date] <= max('DAX Date Table'[Date])
)
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

No This is giving extremely wrong numbers.

 

I tried using the measure:

 

Running Total Closed =
CALCULATE(
    [Non-Dev Tags]-[no of tickets by closed date],
    FILTER(
        ALLSELECTED('devops-query-spr2'[Created Date]),
        ISONORAFTER('devops-query-spr2'[Created Date], MAX('devops-query-spr2'[Created Date]), DESC)
    )
)
 
This is giving the difference of the two but i want to add the previous month's result to this result as well like Jan should be 98+46 = 144.
 
I have tried couple of things but its not working 😞

 

Himanshu_13_0-1624610085786.png

 


 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.