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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikuser222
Creator
Creator

Hide Text based on condition??

Hi,

i have a requirement where i need to hide the text based on conditions.

for example:

In the below, if there is no number before True i need to hide the text and show only Goal or Strike etc respectively

Goal - True - Yes - No  ----> Should show Goal

Strike - True - Yes - No .....> Should show Strike

Start - 5 true - Yes - Yes....> Should show  Start - 5 true - Yes - Yes

Can any one please help me with this requirement??

Thanks

1 Solution

Accepted Solutions
sunny_talwar

May be this:

If(IsNum(Right(SubField(Upper(FieldName), ' True', 1), 1)), FieldName, SubField(FieldName, ' - ', 1) as NewFieldName

View solution in original post

1 Reply
sunny_talwar

May be this:

If(IsNum(Right(SubField(Upper(FieldName), ' True', 1), 1)), FieldName, SubField(FieldName, ' - ', 1) as NewFieldName