Skip to main content
cancel
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

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
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.