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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
PowerrrBrrr
Helper III
Helper III

How to rename Legend values for a Visual

I have  a line chart and have a column which is added as Legend. I would like to rename the Legend values something more meaningful in the visual. How can I do it? For example when I add my column ID  in Legend Field in Line chart. I get 

ID
UU272652
22577IIU

 

I would like to replace these two values of ID as 
ID
Rate by Speed
Rate By Distance.

How can I do it?

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @PowerrrBrrr ,

 

You can create a new table as follows.

vstephenmsft_0-1643188342833.png

 

Then create a relationship between two tables.

vstephenmsft_2-1643188407182.png

vstephenmsft_3-1643188416404.png

 

Then you can replace the Legend field in the original view with the new one.

vstephenmsft_5-1643188465440.png

 

You can check more details from the attachment.

 

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @PowerrrBrrr ,

 

You can create a new table as follows.

vstephenmsft_0-1643188342833.png

 

Then create a relationship between two tables.

vstephenmsft_2-1643188407182.png

vstephenmsft_3-1643188416404.png

 

Then you can replace the Legend field in the original view with the new one.

vstephenmsft_5-1643188465440.png

 

You can check more details from the attachment.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Fowmy
Super User
Super User

@PowerrrBrrr 

You cannot rename in the visual, What you can do is to add another column in the table with the required names that need to show up in the visual then add it as a legend. 

You can also add it in Power Query using Add conditional Column

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.