Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
nvijay5757
Creator
Creator

Listbox hide some values

Hi,

in list box to hide some values. i have two filters 1. country 2. other  (in qlikview its working fine)

=if(WildMatch(Country,'india','USA','CANADA'),Country)

if i select 1st filter its working fine but when i select 2nd filter its not working in qliksense may i know any other alternative.

thanks

Labels (1)
5 Replies
lukas_
Contributor III
Contributor III

Hello,

Do you have the option to create a new dimension in the script based on your calculation? It would be cleaner

vinieme12
Champion III
Champion III

You just need to wrap it in Aggr()

 

=Aggr(if(WildMatch(Country,'india','USA','CANADA'),Country),Country)

 

OR

 

=Aggr(only({<Country={'india','USA','CANADA'}>}Country),Country)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
nvijay5757
Creator
Creator
Author

Hi Vineeth,

Thanks

the Two expressions are working fine. in filter pane values are hiding but when i click on top selections filter hiding values also shown. any help for that.

 

vinieme12
Champion III
Champion III

No, there is nothing you can do about that on the front end

Best option Create a new field in your script

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
nvijay5757
Creator
Creator
Author

Hi Vineeth,

i have tried using create a new field also not working for me. can you please suggest .

Ex:

Test:
LOAD * Inline[
'Extended Target'
india
USA
CANADA
UK ];

Table1:

'india' as Country

Table2:

'USA' as Country

Table3:

'CANADA' as Country

Final1:
LOAD

Modes,
Severity_Level,
Country,

Sum(Sev1)+Sum(Sev2)+Sum(Sev3) as Sevall,
Sum(Ext_Sev1)+Sum(Ext_Sev2)+Sum(Ext_Sev3) as Ext_Sevall

Resident New
Where IsNull(Modes)<>-1
Group By Modes,Severity_Level,Country;
DROP Table New;

NoConcatenate

Fina12:
LOAD
Modes&'|'&Country as key,

Sum(Sevall) as Sevall,
Sum(Ext_Sevall) as Ext_Sevall

Resident Final1
Group By Modes,Country;
DROP Table Final1;

 

like this way i have written code. in this i have two filters 1. country 2. Extended Target

in country filter we have to hide the value.

How can i create column from backend can you please help me in this.