Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
jisephcirspy
Contributor III
Contributor III

Use alias in pie chart instead of number?

So, I have a column consisting of multiple numbers, and I want to make a pie chart which displays the numbers as their Strings like 'TWO' or 'FOUR' instead of 2 or 4.

This is how the pie chart looks like

display.png

 

 

Do you have any idea how to do that?

Labels (1)
5 Replies
Chanty4u
MVP
MVP

can you try this

=count( if(match(Col,'1','0'),'True','False') )

 

or

=sum( if(match(Col,'1','0'),'True','False') )

jisephcirspy
Contributor III
Contributor III
Author

this doesn't work 😞

Chanty4u
MVP
MVP

can you attach sample 

jisephcirspy
Contributor III
Contributor III
Author

from what

MayilVahanan

HI @jisephcirspy 

Instead of front end, try like below

Load * inline

[

YourNumberField, StringFieldName

1, ONE

2, TWO

4, FOUR

];

Then in pie chart, use StringFieldName as Dim

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.