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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Cripp87
Regular Visitor

Adding Legend Reduces Datapoints

Hiya, maybe I'm just being thick but I can't work out why this is happening.

 

I have a simple bar chart, sorted descending by value. The value is 'Count of ID' and axis is 'Department'.

 

When I add another field as legend I seem to lose half the data. I've tried converting to a table, after which I can see all the data (exported the table to Excel too to manually count rows). The sorting remains so obbviously the data is there but it's not showing on the chart!

 

I've checked and all rows/fields have data.

 

First image is with no legend, second image is the same chart with the legend added:

 

power bi issue 1.PNGpower bi issue 2.PNG

3 REPLIES 3
tex628
Community Champion
Community Champion

This is super strange! Can you by any chance share the pbix?


Connect on LinkedIn

Hi @tex628 

 

I'm not able to attach a pbix so I've uploaded to my OneDrive, here is the link:

 

PBIX File

 

I've created dummy data as the previous one contained company data but I've managed to recreate the issue.

tex628
Community Champion
Community Champion

There appears to be a limitation to the number of different values that there can be in the legend. I did not know this myself but from what i can tell it appears to be around 50 values.


Connect on LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.