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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

How to make two visuals (bar chart) showing in same ratio (using data from different data sources)

Hi Community,

 

I am sharing my Pbix file here.

 

I am trying to show bar chart graphs from two different data sources.

I am putting one visual next to other visual because one is showing Actual and the other one is Estimate (shown below).

I was not able to combine these two datasets into one table, so I had to display like this way.

JustinDoh1_0-1647634805338.png

 

The issue is whenever there is a negative number showing on one graph, the proportion of other graph does not go along with the other chart's number & ratio.

 

Here is an example for the selection for two slicers:

- Location = 100

- Payer = Hospice

JustinDoh1_2-1647635132275.png

 

How do we fix this issue?

Thanks.

 

 

 

 

1 ACCEPTED SOLUTION
davehus
Memorable Member
Memorable Member

Hi, I've approached this a little differenlty. I've created a dimensional table, called BudgetType and joined into your fact tables on the calulcated columns.

davehus_1-1647644705013.png

 

I've written the measure below then to bring both values into the same visual.

 

Test = IF(FIRSTNONBLANK(Saga[ActualOrEstimated2],1) = "Actual",[TotalGL],if(FIRSTNONBLANK(PDF[ActualOrEstimated2],1) = "Estimate",[Total],BLANK()))
 
You will get the resulting visual. 
davehus_0-1647645495548.png

 

It needs more testing from you end as you understand the model better, but it may suit your needs.

 

PBIX https://drive.google.com/file/d/1p5rT7A5bm7CEoG-AdAZVo6Y49VjoEB1Y/view?usp=sharing

 
 
 
 
 

View solution in original post

2 REPLIES 2
davehus
Memorable Member
Memorable Member

Hi, I've approached this a little differenlty. I've created a dimensional table, called BudgetType and joined into your fact tables on the calulcated columns.

davehus_1-1647644705013.png

 

I've written the measure below then to bring both values into the same visual.

 

Test = IF(FIRSTNONBLANK(Saga[ActualOrEstimated2],1) = "Actual",[TotalGL],if(FIRSTNONBLANK(PDF[ActualOrEstimated2],1) = "Estimate",[Total],BLANK()))
 
You will get the resulting visual. 
davehus_0-1647645495548.png

 

It needs more testing from you end as you understand the model better, but it may suit your needs.

 

PBIX https://drive.google.com/file/d/1p5rT7A5bm7CEoG-AdAZVo6Y49VjoEB1Y/view?usp=sharing

 
 
 
 
 

@davehus 

Thank you so much for your help.

Your model is definitely smart.

 

I am also thinking about other approach for a solution: join two datasets on Date columns (BatchDate and TransactionDate).

Then, probably apply the measure to determine Actual and Estimate (because logic to determine Actual and Estimate is same for both datasets), at least that is where I am leaning toward.

The reason is that all months for Saga only belong to Actual, and all months for PDF only belong to Estimate.  Maybe your model got that logic right anyway (sorry, I need to analyze your model more closely).

My issue now is that two datasets come from different SQL databases so, I need to figure out how to combine two tables in PowerBI.

If I try to do it in PowerBI, I get many to many relationship, and I am not sure that is ok.

This is what I am trying to do:

JustinDoh1_0-1647648444732.png

I guess, my challenge is, how do I display the data on columns?

I updated my Pbix file with a relationship between two dates.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.