Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

modifying labels in a chart

I am using a pie chart, in which i get data as 1 and 0. while displaying labels i want 1 to displayed as 'a' and 0 to be displayed as 'b'. Where should i write an expression for this?

1 Solution

Accepted Solutions
Not applicable
Author

I'm not sure where the 1's and 0's are coming from, but ultimately the expression would be the same.  If you only have 1's and 0's you could add a calculated dimension (right click->properties->dimensions tab) and write in:

=if([Field] = 1, 'a','b')

where field is the data comprised of 1's and 0's.

I think that should get you your desired results.

Hope this helps!

View solution in original post

1 Reply
Not applicable
Author

I'm not sure where the 1's and 0's are coming from, but ultimately the expression would be the same.  If you only have 1's and 0's you could add a calculated dimension (right click->properties->dimensions tab) and write in:

=if([Field] = 1, 'a','b')

where field is the data comprised of 1's and 0's.

I think that should get you your desired results.

Hope this helps!