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
pprakash
Helper I
Helper I

Change Data Bar name in visualization

 

Hi, i want to change the data bar name in visualization given below ie Num1 to State-1, Num2 to State-3. how can i do it. please help.

Full Plot.PNG

2 ACCEPTED SOLUTIONS
themistoklis
Community Champion
Community Champion

@pprakash

 

You can create a new column where you will change the values to the ones you want and then add this column to the graph.

 

New_Column = 
SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( 'Table'[Column1], "Num1", "State-1" ), "Num2", "State-2" ), "Num3", "State-3" ),"Num4",
"State-4"
)

View solution in original post

Anonymous
Not applicable

Hi @pprakash,

 

You can use switch statement for this.....

 

NewColuimn =  SWITCH(Table[Column] ,

                                        "Num1","State-1",

                                         "Num2","State-2",

                                         "Num3","State-3","Table[Column]")

 

Or you can use if statement.

Best Regards,

Ravi

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @pprakash,

 

You can use switch statement for this.....

 

NewColuimn =  SWITCH(Table[Column] ,

                                        "Num1","State-1",

                                         "Num2","State-2",

                                         "Num3","State-3","Table[Column]")

 

Or you can use if statement.

Best Regards,

Ravi

themistoklis
Community Champion
Community Champion

@pprakash

 

You can create a new column where you will change the values to the ones you want and then add this column to the graph.

 

New_Column = 
SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( 'Table'[Column1], "Num1", "State-1" ), "Num2", "State-2" ), "Num3", "State-3" ),"Num4",
"State-4"
)

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.