Forum Discussion

PiyushBQ's avatar
PiyushBQ
Icon for Helper I rankHelper I
3 years ago
Solved

Get Rolling Maximum

Hi,   I'm trying to get the maximum rolling value in a table, till each date.   Here's the table, with the desired output column:   Date Product Value Desired Output (Highest Value Till D...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi PiyushBQ ,

     

    Based on your logic described, the desired output in Apr-22 should be 28 instead of 24.

    I create the dynamic measure as

    Dynamic MAX = CALCULATE(MAX('Table'[Value]),FILTER(ALLSELECTED('Table'),[Product]=MAX('Table'[Product])&&[Date]<=MAX('Table'[Date])))

    The result changes when the slicer is filtered.

       

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

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