Forum Discussion

mdinius's avatar
mdinius
Frequent Visitor
3 years ago
Solved

Cumulative % increase, based on a parameter

Hey all! I'm looking to create a curve showing the %increase from a selected date to a fixed date. I've created a parameter for the date input, which filters the column of values. The part I can't f...
  • bolfri's avatar
    bolfri
    3 years ago

    National Common Sum = SUM('Sample'[National Common])

     

    First date = CALCULATE(FIRSTDATE('Sample'[Date]),ALLSELECTED('Sample'))

     

    First day value =
    var first_date = [First date]
    return CALCULATE([National Common Sum],FILTER(ALLSELECTED('Sample'),'Sample'[Date]=first_date))
     

     % Increase - NC = DIVIDE([National Common Sum]-[First day value],[First day value])

     

    You can use a simple date slicer.