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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.