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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
karandeep
Contributor II
Contributor II

Changing the numeric values to text in Pivot

Hi there, 

I have created a Pivot table in Qlik where a column contains values of 0 and 1, which I have counted into two separate columns. However, I would like to display '0' as 'No' and '1' as 'Yes'. Is there a way to convert numeric values into text within the Pivot table? Many thanks.

karandeep_0-1747992863507.png

 

 

Labels (1)
2 Solutions

Accepted Solutions
marcus_sommer

You could use a calculated dimension with: pick(MyField + 1, 'No', 'Yes') respectively moving this logic into the data-model and/or creating a dual(), like: dual(pick(MyField + 1, 'No', 'Yes'), MyField) as MyField

View solution in original post

QFabian
MVP
MVP

Hi @karandeep Instead of replace or convert your field, you should create a new field, using @marcus_sommer  or @Kelliesy suggerences

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

3 Replies
marcus_sommer

You could use a calculated dimension with: pick(MyField + 1, 'No', 'Yes') respectively moving this logic into the data-model and/or creating a dual(), like: dual(pick(MyField + 1, 'No', 'Yes'), MyField) as MyField

Kelliesy
Contributor III
Contributor III

Can you use this in the field logic?  if(yourcolumname = 0, 'N', 'Y')  ?

QFabian
MVP
MVP

Hi @karandeep Instead of replace or convert your field, you should create a new field, using @marcus_sommer  or @Kelliesy suggerences

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.