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
davidhh90
Regular Visitor

Multiple Variable Calulation

Hi there, 

 

I'm sorry to ask as I'm sure this is a standard query, but have been searching and trying for some time and can't quite get the answer to what I am trying to do. Please see some simplified data below:

 

Work Order Job Number Phase W/O Total
73657-1 1 Forecast 14360.39
74975-1 1 Confirmed 14360.39
74719-1 2 Billed 1100
75110-1 2 Forecast 5000
74660-1 3 Forecast 40000
74695-1 4 Confirmed 210402.15

 

What I am trying to do is create some DAX measures that will eventually give me a report that tells me the following.

 

A) When a Job has more than a 10% difference between Forecast and Confirmed/Billed

B) If there is a Job that has a Confirmed/Billed status but no Forecast

C) If there is a Job that has a Forecast status but no Confirmed/Billed 

 

I have managed to get fairly close but in very inefficient ways with multiple calculated columns and I feel that there must be a better way to pull it together, as you can probably tell I am fairly new to PowerBI, but have managed to create some great reports and learning more every day so any advice to get me closer would be greatly appreciated. 

 

The only slightly more complex thing is that I have another table that does the job lookup using the Job Number field as the relation, but I'm fairly confident that I can tie the data together if someone could point me in the right direction for what I've posted above. 

 

Thanks to anyone for looking,

Dave

3 REPLIES 3
some_bih
Community Champion
Community Champion

Hi @davidhh90 try to create calculated column with IF applying your logic, the same as in Excel. After that calculation or amount (creation of measure) should be very easy (based on your snapshop). Hope this help.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi @some_bih thanks for the reply. I agree it should be a simple if formula and i've tried to do this in a calculated column. But I'm not sure how to make it lookup using the job field against those multiple variables at once. Currently, I can only see a way of doing it making multiple calculated columns for my 3 questions. Could you suggest the formula to use? 

Hi @davidhh90 I am not familiar with your model to answer properly. I understand, C is like B only operaror is different.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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