Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
gokulnath2592
Contributor III
Contributor III

Valuelist Function with if condition

Hi Community,

I ham having an issue with the below Value list function.

Dimension-- if(GetSelectedCount(Filedname)>0, Valuelist('1','2'),valuelist('1'))

I am getting dimension values which is given in geselected filed instead of Value list.

error.PNG

6 Replies
vinieme12
Champion III
Champion III

can you post a sample app?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
gokulnath2592
Contributor III
Contributor III
Author

!Hi Vineeth,

PFA the sample app.

Thanks,

Gokul

antoniotiman
Master III
Master III

Hi,

maybe this

Regards,

Antonio

gokulnath2592
Contributor III
Contributor III
Author

Hi Antonio,


Thanks for your reply. But I want to implement this in Qliksense.


There is no conditional dimension in Qliksense.


Thanks,

Gokul

vinieme12
Champion III
Champion III

This does not seem possible with ValueList() you will have to load the valuelist field in the load script as island tables and change the expression to as below

=if(GetSelectedCount(ID)>=1,List1,List2)

load * inline [

List1

GG

CC

];

load * inline [

List2

a

b

];

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
gokulnath2592
Contributor III
Contributor III
Author

Hi Vineeth,

Thanks .