cancel
Showing results for 
Search instead for 
Did you mean: 
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

View solution in original post

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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors