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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Remove - in expression

Hi

The following is from a hierarchy.  I have added a drop list object to my app and have created concatenate expression on the LocalServiceLine and Specialty field.  However, I do not want to include any specialty with '-'.  How can i do this.

tableview.PNG.png

14 Replies
tresesco
MVP
MVP

Try like:

if(Len(Trim(Specialty))>0, LocalServiceLine & ': ' & Specialty)

Not applicable
Author

unfortunately that then returns 0 and 1 in the display.

tresesco
MVP
MVP

Could you share a qvw with your sample data?

umerikhlas
Contributor III
Contributor III

Modify your expression in listbox expression as follows:

  • If Specialty having null values then this:

          =if(not isnull(Specialty), LocalServiceLine & ': ' & Specialty)


  • If Specialty having values equal to '-' (dashes) then this:

          =if(Specialty <> '-', LocalServiceLine & ': ' & Specialty)

Hope this will help you.

Regards,

UI

Not applicable
Author

thanks UI that has worked.