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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Default Value in TextBox

Hello,

I started on QlikView

I would like in a text box, set a default value if my field here AsOf, is not selected.Capture.PNG

How can i do that please ?

Thank you in advance for your help,

Cocalero

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

If(GetSelectedCount(AsOf) =0, 'Default Text', date(GetFieldSelections(AsOf,','),'MMM-YY'))

View solution in original post

7 Replies
swuehl
Champion III
Champion III

Maybe like

=If( GetSelectedCount(AsOf) =0, 'Default Text', ....)

Chanty4u
MVP
MVP

use ur expression >0

=date(getfieldselection(asof,' ,')>0,'mmm-yy')

Digvijay_Singh
MVP
MVP

Try this -

==if(len(GetFieldSelections(OrderDate,','))=0,'MMM-YY',GetFieldSelections(OrderDate,','))

Anonymous
Not applicable
Author

Hello,

Thanks a lot for your advice but it doesn't work, i tried this:

Capture.PNG

And it returns just '-'.

Thank you in advance,

Cocalero.

Kushal_Chawda
MVP
MVP

If(GetSelectedCount(AsOf) =0, 'Default Text', date(GetFieldSelections(AsOf,','),'MMM-YY'))

Anonymous
Not applicable
Author

if(getfieldselected(Date),1,max(date))

Anonymous
Not applicable
Author

Thanks a lot, it works !