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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bruleyn
Frequent Visitor

Change legend text based on measure/column

I would like to change "Comparison 1 Line" legend entry to match the particular comparison type for a particular row, so that the table may be filtered for a particular measure and have the corresponding comparison label, e.g. "Goal" or "National Standard." Is this possible?

 

I know I can use a card to return a certain field in the currently filtered row--would I need to create an image for the blue circle and create the legend item manually, or is there an easier way? (Some rows don't need the constant line comparison, so it would be nice to be able to hide the legend item when there is no data-- currently I just set the value to 0 if there is no data.)

chart.JPG

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee

@bruleyn

AFAIK, it is not possible to hide the legend item when there's no data. You can submit your request at Power BI Ideas.

 

As a workaround, you can try to put the legend column in a slicer, only the selected legends would be displayed.

View solution in original post

2 REPLIES 2
Eric_Zhang
Employee
Employee

@bruleyn

AFAIK, it is not possible to hide the legend item when there's no data. You can submit your request at Power BI Ideas.

 

As a workaround, you can try to put the legend column in a slicer, only the selected legends would be displayed.

Would it be possible to do this if I used the R programming language or some other development process?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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