Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
How to create clustered Bar Chart like this in Power BI?
I have one table only, and measures, so i can't create like category column in the legend.
Solved! Go to Solution.
Hi @lilama97 - as mentioned you have measure and not category.
create a calculated column for categories using the measure as below:
Category =
SWITCH(
TRUE(),
[YourMeasure] > 1000, "High",
[YourMeasure] > 500, "Medium",
"Low"
)
select the visualization Clustered Bar Chart icon to add the visual to your report.Drag the dimension you want to display on the y-axis (typically a category) into the Axis field of the visual.Drag your measures into the Values field. If you have multiple measures, you can add them here to create a clustered effect.
Hope this works in your scenerio.
Proud to be a Super User! | |
Hi @lilama97
Thanks for the reply from rajendraongole1 and sbezawada .
After my testing, their replies are very effective. If their replies can help you solve your problem, please don't forget to accept their replies as solutions so that other users can find solutions faster! Thanks!
Sample:
Output:
If their methods don't work for your scenario, please provide some sample data so that we can better help you. How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show it as a screenshot or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.
Best Regards,
Yulia Xu
Hi @lilama97 , If you are having two measure columns, then here is the way to create a clustered bar chart
Just drag your two measures columns to y-axis by doing the aggregation like sum or avg like you need, after selecting the clustered Column chart and add you any one of the column to X- axis. then you will get your answer.
I hope this helps you
thanks
Hi @lilama97 - as mentioned you have measure and not category.
create a calculated column for categories using the measure as below:
Category =
SWITCH(
TRUE(),
[YourMeasure] > 1000, "High",
[YourMeasure] > 500, "Medium",
"Low"
)
select the visualization Clustered Bar Chart icon to add the visual to your report.Drag the dimension you want to display on the y-axis (typically a category) into the Axis field of the visual.Drag your measures into the Values field. If you have multiple measures, you can add them here to create a clustered effect.
Hope this works in your scenerio.
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |