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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Custom visual for Clustered Bar chart to have more than one measure with Legend

Hi,

I have a requirement wherein I need to show comparison between two measures using a clustered bar chart.

The category column (on X axis) is required to be part of Legend as there is a custom color scheme being followed throughout the application in which the report will be integrated.

The clustered bar chart doesnt give an option of adding more than one column when Legend is being used.

https://community.powerbi.com/t5/Desktop/Legend-is-not-allowing-when-in-values-section-two-measures-...

I am trying to create a custom clustered bar chart and using the sampleBarChart code available below.

https://onedrive.live.com/?authkey=%21AB0-rP7jb9urmHs&cid=C3D44232D04D59CF&id=C3D44232D04D59CF%21115...

I am new to d3 can anyone help me understand what properties in which file I need to change to be able to use more than one column in measure values with using Legend.

1 REPLY 1
v-evelk
Microsoft Employee
Microsoft Employee

Hi,

 

1. I notified the Clustered Bar Chart team about your request so they will consider it and will probably added in the next releases.

 

2. To handle a backet limits you need to edit conditions section in capabilities.json.

There is a documentation page where you can find how to manage conditions.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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