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: 
Not applicable

How not to show the '-' value of a Select Field List

Hi, I have this Field and I would like not to show the empty value ('-').

There is no empty value in the table but in the related ones by a key field.

Anyway I would like the user can not select '-'.

19-07-2013 23-41-16.png

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: If(MyField <> '-', MyField)

or alternatively: if(match(MyField, 'Internacional', 'Locales', 'Gratuidades'),MyField)


talk is cheap, supply exceeds demand

View solution in original post

9 Replies
Not applicable
Author

there are two ways:

1.- Select the '-' character after Rigth Clik over LIST BOX and choose Select Excluded option

2.- To level script

      If(Nom_field <> '-',Nom_field)

regards!!!

or attach the qvw

Sokkorn
Master
Master

Hi,

Let use expression in your listbox

If(Len(Field)<1,Null(),[Field])

Regards,

Sokkorn

Not applicable
Author

Thanks but I would like the user not even see the values he can not select.

Not applicable
Author

Thanks but I would like the user not even see the values he can not select.

Not applicable
Author

we unterstand the user not to see the values with simbol '-' but

how do you know what values the users have not to see?

explain plis!!

Not applicable
Author

For stetic reasons I would like to show only the values I want that is 'Internacional', 'Locales', 'Gratuidades'.

shree909
Partner - Specialist II
Partner - Specialist II

Hi, Try this

if(len(trim(fieldname)<>0,fieldname)

or

=if(len(trim(Name))<>0,replace(Name,'-',''))

Not applicable
Author

i see, the response from Shree 909 its correct what you need!!!

Regards!!!!

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: If(MyField <> '-', MyField)

or alternatively: if(match(MyField, 'Internacional', 'Locales', 'Gratuidades'),MyField)


talk is cheap, supply exceeds demand