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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

Trying to get to tables to talk

I am trying to get two tables to talk to one another for a variance analysis. However instead of a variance analysis by the total I want it by state. For example I have TX actuals for April of $14k and a budget of $10k. Therefore I would have a positive variance of $4k. 


However, even if I create a relationship between the tables by state the budget will show TX with the total sales budget for the month rather than $10k. What am I missing? 

Super User
Super User


could you pls provide some sample data and the expected output?

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

Proud to be a Super User!

Sure. Please see the attached screenshot. As you can the total does calculate correctly but the state is taking the total budget minus what the state budget is creating a large variance. The sales column is getting data from one table while the budget column is getting data from another table. Let me know if this makes sense. 





Share the download link of the PBI file.

Ashish Mathur

I am not sure how to share a PBI doc. Sorry I am new to PBI 

can't find out the root cause by this screenshot. It's better to provide some sample data(raw data) to craete a small solution, then apply it to your actual data.

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

Proud to be a Super User!

Sure here is what I have of sample data 


Actuals Table




Budget Table




From this I created two measure a sales


and a budget




and here is the variance formula




Yet whats happening is it is taking the total budgeted sales of $1,481,256 for the month of May (all states) and subtracting it from the $24,560.95 of actual sales when it should be subtracting $17k and not the $1.5M





it looks correct based on the sample data you provided


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

Proud to be a Super User!

Could it be a formatting issue between the two tables?

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.