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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
SebastianAlmer
Frequent Visitor

multiple columns in one chart

Hi,

 

this might be an absolute n00b question, but I can't figure out how to do it.
I have a table with several columns (four in this example). Each columns has a name and several hunders values. I wan't to have the average value per column displayed in one bar chart and want to have the name of the column not via color legend, but displayed either in the bar or left on the side.
How can I achieve this? Do I need to create a calculated table? If so? How?

Original:
pic1.jpg

 

Option 1

pic2.jpg

Option 2

pic3.jpg

 

Both Options would be fine for me. 

Thanks in advance for your help!

Regards
Sebastian

1 ACCEPTED SOLUTION

6 REPLIES 6
SebastianAlmer
Frequent Visitor

@amitchandak 

Thanks for your support. The result should look like:
pic4.png

I've created a new table manualle with:

Table3 = {
    ("Col_A2",AVERAGE(Table1[Col_A1])),
    ("Col_B2",AVERAGE(Table1[Col_B2])),
    ("Col_C2",AVERAGE(Table1[Col_C2])),
    ("Col_D2",AVERAGE(Table1[Col_D2])),
    ("Col_E2",AVERAGE(Table1[Col_E2]))
}


Heres the PBIX:
https://almerprojekte-my.sharepoint.com/:u:/g/personal/sebastian_almer_de/EXugyWZgiVRPrjc92hA-q2YBhh...

But I have in the original file about 50 columns in several files. Would take me weeks to do this manually.

@SebastianAlmer , I think you need unpivot multiple times 

refer : https://kohera.be/power-bi/how-to-unpivot-twice/

Nailed it.

I can't believe I didn't think of this myself.... 😂 🙈🙈

SebastianAlmer
Frequent Visitor

@SebastianAlmer , While I still doubt, What is the expected output. Based on what I got, I created a solution.

 

Check the file attached after signature 

 

amitchandak
Super User
Super User

@SebastianAlmer ,The information you have provided is not making the problem clear to me. Can you please explain with an example.  Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Appreciate your Kudos.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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