Forum Discussion

abc_777's avatar
abc_777
Solution Specialist
5 years ago
Solved

dynamic date

dear concern, I have follwing table with measure and its working good. when user give date like -12 or -13 it calculate last 13 days quantity but still showing the whole lot data. I mean uncalculate...
  • Jihwan_Kim's avatar
    Jihwan_Kim
    5 years ago

    Hi, abc_777 

    Thank you for your feedback, and sorry that I did not recognize the backward cumulate.

    Please check the below picture, the measure, and the link down below.

     

     

    https://www.dropbox.com/s/cd59ags3a8zk4x3/abc.pbix?dl=0 

     

    QTY Total N days backward cumulate =
    IF (
    NOT ISBLANK ( [QTY Total N days] ),
    CALCULATE (
    [QTY Total N days],
    FILTER (
    ALLSELECTED ( 'Calendar' ),
    'Calendar'[Date] >= MAX ( 'Calendar'[Date] )
    )
    )
    )

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: www.linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM