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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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