Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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.
Any ideas please as the result i get is zero?
Thanks in advance
Solved! Go to 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 - EUBest Regards!
Dale
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 )
Best Regards!
Dale
@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 - EUBest Regards!
Dale
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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 46 | |
| 36 | |
| 28 | |
| 23 |
| User | Count |
|---|---|
| 135 | |
| 121 | |
| 58 | |
| 40 | |
| 32 |