Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
sebbyp
Helper III
Helper III

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 series for many different countries.

 

I want to take economic indicator A for Country US and calculate the difference compared with Country EU.

 

Capture.PNG 

Any ideas please as the result i get is zero?

 

Thanks in advance

1 ACCEPTED SOLUTION

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

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @sebbyp,

 

Try this formula please. 

 

Measure =
VAR US =
    CALCULATE ( SUM ( 'Table1'[Macro Trend Score] ), 'Table1'[Country] = "US" )
VAR EU =
    CALCULATE ( SUM ( Table1[Macro Trend Score] ), 'Table1'[Country] = "EU" )
RETURN
    DIVIDE ( us, eu, 0 )

Quick Measure Calculate difference from another row.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-jiascu-msftthank you for the help.  I see your formula works but you have used the divide function when i was looking for the difference between the two results.  What should i replace DIVIDE with to get a subtraction? for example US - EU?

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

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-jiascu-msft

 

This calculation you help me with previously was really helpful and done the trick.  I would like to try something slightly differently this time around and take the difference for a countrys economic reading compared with the previous date.  How can this be achieved.  THe data is organised in the same table we spoke about previously in this conversation.  

Hi @sebbyp,

 

Please create a new thread.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.