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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
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

1 Solution

Accepted Solutions
Kushal_Chawda

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

View solution in original post

7 Replies
swuehl
MVP
MVP

Maybe like

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

Chanty4u
MVP
MVP

use ur expression >0

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

Digvijay_Singh

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

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 !