Forum Discussion

jeoosma's avatar
jeoosma
Icon for Helper II rankHelper II
8 years ago
Solved

delta % sales

  Hi guy. In this table I want to put instead of total the % of var between the two year. Fr example type  "S" the increase % of 2018 vs 2017. I don't know DAX and it's for me very uneasy to s...
  • BKirsch12's avatar
    8 years ago

    This can be solved by creating 3 measures:

     

     

    Replace ** items with your fields.

     

    2017= CALCULATE(SUM(**your amount column**),FILTER('Budget/Expense',FIND("**2017**",'**Your Year Column**,,0)))

     

    2018= CALCULATE(SUM(**your amount column**),FILTER('Budget/Expense',FIND("**2018**",'**Your Year Column**,,0)))

     

     

    Once you create a measure, a measure can then take another measure as an input.

     

    % Difference = 2018 / 2017 - 1

     

    Hope that helps.

     

    Let me know if you have any questions