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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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