Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
RKULKARNI4
Contributor III
Contributor III

column display as ---

Hello Team,

For one of the column(ColA) I need to display as '---' if it is  "blank" or '-'  

If (trim(ColA)='-' or trim(ColA)='--' or trim(ColA)='.' or trim(ColA)='','---',ColA) as "ColA"

After applying this formula still it is displaying in the column as '-'.Please advise how it can be sorted it out.

Thanks in advance

Regards

RK

 

 

 

1 Reply
sunny_talwar

Is it possible that you have Null in there? Try this

If(Len(Trim(ColA)) = 0 or Trim(ColA) = '-' or Trim(ColA) = '--' or Trim(ColA) = '.' or Trim(ColA) = '', '---', ColA) as "ColA"