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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
roguetrader87
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? 

8 REPLIES 8
ryan_mayu
Super User
Super User

@roguetrader87 

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. 

 

roguetrader87_0-1684464087111.png

 

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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

 

roguetrader87_0-1684468841927.png

 

Budget Table

 

roguetrader87_1-1684468875117.png

 

From this I created two measure a sales

roguetrader87_3-1684468978785.png

and a budget

 

roguetrader87_2-1684468962104.png

 

and here is the variance formula

 

roguetrader87_4-1684469026193.png

 

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

 

 

 

@roguetrader87 

it looks correct based on the sample data you provided

1.png





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

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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