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

Modify my legend label

Hi, 

I want to change my legend label in a pies chart and in a tooltips, but I don't want to modify directly my table.

Do you know how?

Example : 11 -> Work, 1-> Study

FrederiqueL_0-1613494040263.pngFrederiqueL_1-1613494206819.png

Thank in advance

2 Solutions

Accepted Solutions
GaryGiles
Specialist
Specialist

@FrederiqueL 

In your dimension expression, try this:

=Pick(Match(Fieldname,1,11),'Study','Work')

Fieldname represents the field with 1, 11, etc.

View solution in original post

manoranjan_d
Specialist
Specialist

May i know you want to change all the legend label or particular legend label?

if all means you also try the value list function in dimesnion

example 

dim

ValueList('Work', 'study', ..... and so on as per your your requirement)

exp:

=IF( ValueList('Work', 'study', ..... ) = 'Work', sum(sales),
IF( ValueList('Work', 'study', ..... ) = 'Study, sum(sales)).......

 

or you can try gray solution also, but need required things in the pick and match as gray mentioned 

View solution in original post

2 Replies
GaryGiles
Specialist
Specialist

@FrederiqueL 

In your dimension expression, try this:

=Pick(Match(Fieldname,1,11),'Study','Work')

Fieldname represents the field with 1, 11, etc.

manoranjan_d
Specialist
Specialist

May i know you want to change all the legend label or particular legend label?

if all means you also try the value list function in dimesnion

example 

dim

ValueList('Work', 'study', ..... and so on as per your your requirement)

exp:

=IF( ValueList('Work', 'study', ..... ) = 'Work', sum(sales),
IF( ValueList('Work', 'study', ..... ) = 'Study, sum(sales)).......

 

or you can try gray solution also, but need required things in the pick and match as gray mentioned