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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Substracting Two Measures

Hi,

 

I have two, relatively simple sum measures that produce two sets of counts.

Measure1

100

250

10

 

Measure2

1500

1000

50

 

Then I have a simple subtraction measure, Measure2-Measure1. This produces some correct results, however sometimes it produces very incorrect results. For instance, given the above it may produce

(1,500 - 100) = 1400

(1,000 - 250) = 800 ???

(50 - 10) = 40

 

It should be very simple, but it's not producing the right result. I've tried setting Measure1 and Measure2 equal to a var name, then subtracting those, same issue. I've also tried just shortening the equation to the measure by itself to confirm that it's producing the right counts going into the measure (so 1,000 and 250) and that is fine as well. It just doesn't subtract them correctly about 1/5 of the time. 

 

Any ideas?

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Can you share a sample file, please? You post the result here. I'm afraid we can't find out the reason. 

If these measures are evaluated in the same context, it should be correct. But we don't know if there is any context conversion in the measures. 

 

 

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.
Anonymous
Not applicable

Thanks for your reply Dale. Unfortunately, the data is sensitive. I recreated the pertinent portions but the error was not reproduced in those portions, leading me to believe the error exists somewhere within the pre-built model I'm pulling from.

 

 

Hi @Anonymous,

 

Did you solve the issue? If you can't share the data, you can share some snapshots and the formulas at least.

 

 

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.
Anonymous
Not applicable

External dependencies will have to resolve this issue unfortunately, I've ruled out problems I can diagnose or solve for from my end in terms of formulas. I'll respond back if/when a solution is reached on this, thanks.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.