Forum Discussion

sebbyp's avatar
sebbyp
Helper III
8 years ago
Solved

Quick Measure Calculate difference from another row

Hi there, i am trying to use quick measure for the first time as i thought this functionality could help me out on this occasion.  I have one dataset containing various economic indicator times serie...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    8 years ago

    Hi sebbyp,

     

    Replace DIVIDE with your formula. For example.

    Measure 5 =
    VAR US =
        CALCULATE ( SUM ( 'Table1'[Macro Trend Score] ), 'Table1'[Country] = "US" )
    VAR EU =
        CALCULATE ( SUM ( Table1[Macro Trend Score] ), 'Table1'[Country] = "EU" )
    RETURN
        US - EU

    Best Regards!

    Dale