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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
anileshknpowerb
Helper III
Helper III

Need running sum on Dax measure

Hello experts,

I need help on below issue.

 

I have created a dax measure that shows value 1 for each row in table visual.

 

Name      Count

AAA           1

BBB            1

CCC           1

 

I want to create a new dax measure "Rsum" which is a running sum.

 

Name      Count   Rsum

AAA           1           1

BBB            1           2

CCC            1           3

 

How to creata a Dax Measure to get the Running Sum

1 ACCEPTED SOLUTION

@anileshknpowerb 

 

You need to use Quick measur Running totalRunning total.PNG

 

Or the DAX 

Count running total in Name =
CALCULATE(
    SUM('Sheet2'[Count]),
    FILTER(
        ALLSELECTED('Sheet2'[Name     ]),
        ISONORAFTER('Sheet2'[Name     ], MAX('Sheet2'[Name     ]), DESC)
    )
)

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

4 REPLIES 4
anileshknpowerb
Helper III
Helper III

Name      Value   Rsum

AAA           1          1

BBB            1          2

CCC           1           3

 

I want to create a dax measure "RSum", by suing the dax measure "Value". Please help

@anileshknpowerb 

 

You need to use Quick measur Running totalRunning total.PNG

 

Or the DAX 

Count running total in Name =
CALCULATE(
    SUM('Sheet2'[Count]),
    FILTER(
        ALLSELECTED('Sheet2'[Name     ]),
        ISONORAFTER('Sheet2'[Name     ], MAX('Sheet2'[Name     ]), DESC)
    )
)

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Thank you so much..

Welcome

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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