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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
fanninam
Creator
Creator

Hide a field from a LISTBOX

Need to hide a field from a LISTBOX. For example, I want to not show 2027 (they used it as a test year).

2 Solutions

Accepted Solutions
pradosh_thakur
Master II
Master II

if(Yourfield<>2027,Yourfield)
Learning never stops.

View solution in original post

pradosh_thakur
Master II
Master II

IF(Your_field =2027,null(),Your_field)

or

pick(Match(Your_field,2027)+1,Your_field,null())
Learning never stops.

View solution in original post

6 Replies
pradosh_thakur
Master II
Master II

if(Yourfield<>2027,Yourfield)
Learning never stops.
pradosh_thakur
Master II
Master II

IF(Your_field =2027,null(),Your_field)

or

pick(Match(Your_field,2027)+1,Your_field,null())
Learning never stops.
sunny_talwar

Another option

Aggr(Only({1<Year = e({<Year = {2027}>})>}) Year), Year)
mayank_daga
Contributor
Contributor

Try this:

AGGR(CONCAT({1<Year-={'2027'}>} Year), Year)
sunny_talwar

The problem is that as soon as your select a Year, the other Years will vanish. May be you wanted this

AGGR(CONCAT({1<Year=-{'2027'}>} Year), Year)

minus sign after = and not before

mayank_daga
Contributor
Contributor

Yes, I'm sorry. Typo.. using a mobile to answer!