Forum Discussion
Adding Legend Removes Data Labels
- 1 year ago
Hi DN200 ,
This is a great observation, and you’re definitely not alone—adding a legend in Power BI stacked bar/column charts can sometimes cause data labels to disappear, especially on smaller bars. It’s not just a sizing issue; it’s actually due to how Power BI manages label rendering priority when multiple series (legend values) are present.
When you add a legend, Power BI tries to avoid overlapping labels and prioritizes which ones to show, often skipping smaller segments to keep the chart readable. But as you noticed, when you drill down (and the number of visible legend categories drops), the labels reappear—even if there are more bars in total.
A few things you can try:
- Increase the font size or reduce the number of legend categories to see if more labels appear.
- If possible, use “Data label density” (if available in the Format pane) to control how many labels are displayed.
- Consider switching to a clustered bar/column chart if your scenario allows, as these sometimes handle labels differently.
- As a workaround, you can also add a tooltip or custom visual to display the values on hover for the smaller bars.
Honestly, this does feel like a rendering limitation or minor bug in how Power BI handles data labels with legends. You’re not doing anything wrong, and many users have run into similar behavior.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI
Hi DN200
Thanks for bringing this up!
We’ve tried to reproduce the behavior on our end using a basic sample dataset, and in our case, the data labels appeared correctly on the stacked bar chart, both with and without a legend, and across drill-up and drill-down levels.
Below are the screenshot for your refernce:
Here are a few things you can check on your side :
- Ensure you're using the latest version of Power BI Desktop. Sometimes, display issues get resolved in newer builds.
- Double-check the formatting options under Data labels make sure label visibility isn’t conditional on size or overlap.
- If the bars are very small or the space is constrained, Power BI may automatically suppress some labels to reduce the font size.
- Try repositioning the legend or resizing the visual to see if that impacts label visibility.
If the issue still persists, feel free to share a small sample PBIX file and we’ll be happy to take a closer look!
Please show the expected outcome based on the sample data you provided.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Hope this helps!!
If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.
If you continue to face issues, feel free to reach out to us for further assistance!