Forum Discussion

Callmeadel's avatar
Callmeadel
New Member
4 years ago
Solved

RunningTotal to stop at max Date

Good afternoon,   I was just wondering what can of dax formula can I use to show the max date of my line the orange line is Actual transaction amount and blue line is the Estimated amount problem ...
  • v-zhangti's avatar
    4 years ago

    Hi, Callmeadel 

     

    You can try the following methods.

    Measure:

    RunningTotal =
    IF (
        MONTH ( SELECTEDVALUE ( 'Table'[Date] ) ) <= MONTH ( TODAY () ),
        CALCULATE (
            SUM ( 'Table'[Actual transaction] ),
            FILTER ( ALL ( 'Table' ), [Date] <= SELECTEDVALUE ( 'Table'[Date] ) )
        ),
        BLANK ()
    )
    

    Is this the result you expect?

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more.