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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Silvie
Helper I
Helper I

Substraction formula of 2 measures not working

Hi, 

 

I created 2 measures:

  • Cust. Rep. CG = calculate(max('A027 Customer Reputation'[Rep Track Pulse Score]),filter('A027 Customer Reputation','A027 Customer Reputation'[Year] In {"2023"}))
  • A027 TOP 1 2023 = calculate(max('A027 Customer Reputation'[Rep Track Pulse Score]),'A027 Customer Reputation'[Company]<>"Colruyt Group",'A027 Customer Reputation'[Year] In {"2023"})
Now I want to substract these 2 measures but the formula doesn't work. 
This is how my formula looks like: Rel. Cust. Rep. 2023 = calculate(sum('A027 Customer Reputation'[Cust. Rep. CG]))-calculate(sum('A027 Customer Reputation'[A027 TOP 1 2023]))
The outcome for 2023 should be 6,07. (77,01 - 70,94)
 
The table with data looks like this (just a part of the data): 
Silvie_0-1706188328593.png

 

Kind regards, 
Silvie
 
2 REPLIES 2
Daniel29195
Super User
Super User

@Silvie 

can you share the visual you are building and the data you are getting from using your measure ? 

 

 

that would be helpful 

 

 

best regards

HI Daniel,

 

My apologies for the late reply. For some reason I didn't get a notification. I want to create a KPI card that looks like the one below. The result of the 2 measures I created are mentioned in the table. 

Silvie_0-1706685878007.png

 

Kind regards, 

Silvie

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors