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.
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?
Solved! Go to Solution.
@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
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.
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |