Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conditional Listbox View

I have data as far back as 1998. I need to create a Fiscal Year listbox that only lists from 2006 forward.

1 Solution

Accepted Solutions
Not applicable
Author

I think you could do something like this:

=if(Year(Date)>='2006',Date,)

View solution in original post

7 Replies
Anonymous
Not applicable
Author

PS: What how do I set the view to only show from 2006 forward?

Not applicable
Author

I think you could do something like this:

=if(Year(Date)>='2006',Date,)

Not applicable
Author

In ListBox - Columns, the very first option is to use an expression.

Use

=if(Year(Date) >= '2006', Year(Date))

Anonymous
Not applicable
Author

I don't see ListBox - Columns. List box only gives me the ability to choose 1 field.

Not applicable
Author

On the 'General' tab of the Listbox Properties, it's under Field <Expression>

Here you can put the expression.

Anonymous
Not applicable
Author

Thank you Xena. I was able to enter the expression substituting Date for the field name FiscYear. I got no return values.

Anonymous
Not applicable
Author

=if(FiscYear >= '2006', FiscYear)

I modified the expression to the above and it works. Thank you guys for all your assistance!