Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
oliveton
Creator
Creator

Replace '1' with '-' Without Replacing All 1's Occurring in Every Number

I just want to replace everything with a 'VIO' of 1 with a dash instead.

When I do this with PurgChar, it takes every 1 that occurs in every other number (such as 14) and changes it to -4, 2- etc.

I just want this to affect the numbers that are actually 1, and keep numbers like 21 and 100 the same if that makes any sense.

Thank you !

1 Solution

Accepted Solutions
Gysbert_Wassenaar

If([201804]='1','-',[201804]) as VIO


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Anonymous
Not applicable

Where Index(20184,'1')=1  ?

Anonymous
Not applicable

pick(match(20184,'1'),'-')


 

Gysbert_Wassenaar

If([201804]='1','-',[201804]) as VIO


talk is cheap, supply exceeds demand
oliveton
Creator
Creator
Author

Perfect, thank you!!