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
deepvibha
Advocate II
Advocate II

Customized Legend Names - To override the default legend names

Hi,

 

I have created certain measures like mSumPhaco, mSumSICS and mSumFreeCataract and have plotted it on clustered column chart. Obviously, name of the measures are appearing as legends. I wish to change the legends as per the image below. One way of doing so is ofcourse renaming the measures, but I do not want to do so.

Untitled.png

Can that be achieved?

 

Regards,

Deepak

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @deepvibha,

 

By default, the legend name is the measure name in a chart visual, and now you are want to rename the legend name but keep the measure name, right?

 

Based on current features supported in PowerBI, I'm afraid it is not possible to achieve this requirement. We can only customize the position of legend, the color, font size and content of legend title.

 

Someone has submitted this feature request, you can click here to vote it up.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
shashiKumar
New Member

Now, You can rename in the vizualization tab and the legend will reflect that custom name without having to rename the column.

@shashiKumar , can you please elaborate? The feature seems not available.

Select the graph/visualization --> Go to Visualizations tab --> Under "Values", right click the measures/table things you want to rename and choose "Rename for this visual".

Figured this out after many hours and googling it and seeing this page multiple times without finding an answer.    😫😫 Hoping this will save someone some time.

v-melvinong
Microsoft Employee
Microsoft Employee

Unfortunately the solution still doesn't exist. What you did was rename the measure, not the values within the measure itself, which is what OP was trying to acheive. 

 

I think the only way forward right now is to create a new measure with the renamed values and use that as the legend instead. 

 

v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @deepvibha,

 

By default, the legend name is the measure name in a chart visual, and now you are want to rename the legend name but keep the measure name, right?

 

Based on current features supported in PowerBI, I'm afraid it is not possible to achieve this requirement. We can only customize the position of legend, the color, font size and content of legend title.

 

Someone has submitted this feature request, you can click here to vote it up.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-yulgu-msft.

 

I've voted for the feature request.

 

Regards,

Deepak

If those names are measures, you can create duplicates that reference them. For instance:

 

Free Cataract = [mSumFreeCataract]

...then use that new measure in your chart.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks @KHorseman,

 

That's a good alternative, I feel.

I have a query that by duplicating reference, am I creating another measure? i. e. will it evaluate the same formula, which I have written for the acutal measure, again?

 

 

Regards,

Deepak

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.