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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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