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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Xilitor
Helper I
Helper I

Adding a legend removes/excludes values

Hi!

 

I have created a stacked bar-chart and when adding a Date-variable on the Axis and a measure on the Values it gives the correct output. Once I add a legend the output gives the wrong values. I have no filter enabled other than Year = 2019 and Month = July-December.

 

The chart without adding a legend (correct values):

Xilitor_1-1599217843043.png

 

The chart with a legend:

Xilitor_2-1599217863091.png

 

So, the only differences between the two charts above are the legend added.

 

I hope someone can help!

Thanks! 🙂

 

// BR

1 ACCEPTED SOLUTION

I found the solution:

For some reason the stacked bar chart can maximum display 58 different types of the legend. This means, that when I look at legends more than 58 types it chooses itself which to display.

Therefore, I added a filter to display only the top 58 filters by the measure used.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Xilitor , I doubt join of legend with table or formula using some calculation on the legend

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

This is how it's connected:

Xilitor_0-1599218871069.png

 

Sorry for the blurring - I am using customer data.

I found the solution:

For some reason the stacked bar chart can maximum display 58 different types of the legend. This means, that when I look at legends more than 58 types it chooses itself which to display.

Therefore, I added a filter to display only the top 58 filters by the measure used.

I just using all 3 variables from the same table and I still experience the same problem. So it cannot be regarding the relationships. And I have done no calculations for any of variables for this chart. Could it be because of a back-end problem then?

Xilitor
Helper I
Helper I

The legend detects the right number in a table but not in the chart.

E.g. selecting the legend in a table with the highest value doesn't highlight in the bar:

Xilitor_0-1599218489617.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.