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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sraj
Responsive Resident
Responsive Resident

Measure for subtraction

 
Hello,
I am trying to substract between these 3 measures, is this the right way to do it?  Because the value I am getting is not what I expected.  
 
493403 - 4297 - 477048 = 12,058 is what I am expecting but with the below measure I get this value 942470.
 
 
Total Remaining =

max('sched/status mrkt'[pers_held_cnt]) + max('sched/status mrkt'[real_held_cnt]) -

MAX('sched/status mrkt'[pp_pro_cnt]) +  MAX('sched/status mrkt'[rp_pro_cnt]) +
MAX('sched/status mrkt'[pp_others_pro_cnt]) + MAX('sched/status mrkt'[rp_others_pro_cnt]) +  MAX('sched/status mrkt'[rp_prescheduled_pro_cnt]) -

MAX('sched/status mrkt'[pp_bad_pro_cnt]) + MAX('sched/status mrkt'[rp_bad_pro_cnt])
1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @sraj ,

 

Can you provide the specific formula corresponding to the 3 MEASURES and test data, I suspect that the external filtering context is causing the wrong values.

How to provide sample data in the Power BI Forum - Microsoft Power BI Community


Looking forward to your reply.


Best Regards,
Henry

 

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @sraj ,

 

Can you provide the specific formula corresponding to the 3 MEASURES and test data, I suspect that the external filtering context is causing the wrong values.

How to provide sample data in the Power BI Forum - Microsoft Power BI Community


Looking forward to your reply.


Best Regards,
Henry

 

Got it, finally it worked.  Thank you for pointing that!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.