Forum Discussion

ARob198's avatar
ARob198
Helper IV
6 years ago
Solved

Cumulative Multiplication measure

Hello,   I am trying to create a dynamic measure that multiplies the value for all dates before today.  I do not know how to do this in Power BI.  Can anyone help?   For example- I am looking to ...
  • parry2k's avatar
    parry2k
    6 years ago

    ARob198 not sure what you are referring to purple, share screenshot, here is how you can add 2nd filter

     

    Measure = 
    VAR __d = MAX ( 'Day'[Index] ) 
    RETURN CALCULATE ( PRODUCTX ( 'Day', [Value 1] ), 
    ALLSELECTED ( 'Day' ), 'Day'[Index] <= __d, 'Date'[Date] > DATE(2016,1,1) )

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.