Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to calculate a difference

Hello, I am new to Power BI, and I am trying to solve one (probably easy) task, but not sure how.   Let me simplify it:   I have data in such format: YEAR   Company Result 2023      A          ...
  • eliasayyy's avatar
    3 years ago

    Give you made a matrix table

     

    Please try

     

    Difference = 

    VAR _y = [result]

    VAR _ly = CALCULATE([result],calendar[year] = MAX(Calendar[year]) -1)

    RETURN

    _y - _yl