cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors