Forum Discussion
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:
Can anyone help me?
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
2 Replies
- amitchandak
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
- Jihwan_Kim
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.