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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
betzuqui
New Member

Represent data series in a bar chart

Hi, I have problems trying to visualize different series in a same bar chart. How can I do it?

My data looks something like that:

 

consumer

preference for healthy food

preference for natural food

preference for light food

1

1

3

2

2

3

2

1

3

1

3

2

4

2

1

3

 

 

And I would like to end-up having a graph like this one:

betzuqui_0-1619767944700.png

Can anyone help me?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@betzuqui , Unpivot the last three columns. They will come in rows in a new column. (rename them before unpivot)

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Then you can use this new column as axis preference as legend

 



View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @betzuqui 

I am not sure whether I am missing something from your explanation, but may I ask what is the height of each bar chart stands for? Why "natural" shows the highest and "light" shows the shortest? It will be very much helpful to know to come with a more accurate solution.

Thank you.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


amitchandak
Super User
Super User

@betzuqui , Unpivot the last three columns. They will come in rows in a new column. (rename them before unpivot)

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Then you can use this new column as axis preference as legend

 



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.