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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Bar Chart with Multiple Tables as DataSource

I'm trying to build a Bar chart with 2 axes.

 

For Example:

X = The Branch Name

Y = Total Sales

 

 

It sounds incredibly simple but i cannot seem to figure this out. 

 

First off there is not just a simple Bar Chart, only Stacked, and Clustered, at least from what i can see. 

 

 

I am able to get data from Table A in place.

But I cannot add any other Tables' information in place or else it flips out. 

 

How can i simply create 10 Bars and feed it 1 column from 10 different Tables. 

 

 

 

Note:

These tables are populated by .csv files that are updated every week. 

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

 

two general strategies for solving this:

 

In Power Query, merge the neccessary fields together into a new table, and use this table as source for you chart.

 

Or,

 

create a stand-alone table, with names corresponding to e.g. the filenames on the rows. Then create a measure that makes use of the Switch-statement, so if the row value corresponds to input table 1, use the sum of column 1 in table 1, and so on for each row/inputfile. Then add the column of the stand-alone table as axis, and the measure as value.

 

If you provide som sample data, I can help you in more details.

best regards,

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.