Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a question about the functionalities of a listbox in QlikView.
In my dashboard I have a listbox with is filled by the following column "USR_VA_LOGIN" of this query :
LOAD "USR_ID",
"QUPR_CD",
"USR_VA_LOGIN",
SQL SELECT *
FROM dbo."TU_UTILISATEUR"
And I'd like to filter my listbox to recover just the USR_VA_LOGIN where QUPR_CD is not null. Is there a possibility to filter directly my listbox with a graphic option or do I have to implement a WHERE clause in my query ???
Thx for you help.
Nicolas
Hi,
I can think of two options:
1. Modify the List Box to filer the Field Values using an Expression. To do this, Right Click > Properties > General Tab and, under the Field Section from the Drop down select <Expression> and the expression would be something like:
=if(not isnull(QUPR_CD), USR_VA_LOGIN)
2. Create a new field in the script (no need to use a where clause) like this:
if(len(QUPR_CD) > 0, USR_VA_LOGIN) as NewFieldName
That's what I would do. Hope this helps.
Mike.
You can load just is not null
LOAD "USR_ID",
"QUPR_CD",
"USR_VA_LOGIN",
SQL SELECT *
FROM dbo."TU_UTILISATEUR"
WHERE EXISTS("USR_VA_LOGIN")
Thx a lot, your first solution is working very well.
Nicolas