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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
UserID2626
Partner - Creator III
Partner - Creator III

Filter Pane

Hi,

Need to create a Simple filter pane as range value like below image without creating a range value manually

Capture.PNG

And selection of filter will reflect in table

if i select 0-50, the value falls under 0-50 should be displayed

 

thanks,

Labels (3)
1 Solution

Accepted Solutions
pradosh_thakur
Master II
Master II

if value is your field then

pick(match(-1,value < 50, value >= 50 and value < 100,value >= 100 and value < 150,value >= 150 and value < 200, value >=200),'0-50','50-100','100-150','150-200','>200') as Range
Learning never stops.

View solution in original post

4 Replies
pradosh_thakur
Master II
Master II

if value is your field then

pick(match(-1,value < 50, value >= 50 and value < 100,value >= 100 and value < 150,value >= 150 and value < 200, value >=200),'0-50','50-100','100-150','150-200','>200') as Range
Learning never stops.
UserID2626
Partner - Creator III
Partner - Creator III
Author

Could you please explain why you given -1 in match() function

Thanks 🙂
pradosh_thakur
Master II
Master II

True is represented -1 and flase as 0 in Qlik. So when the condition is true it will be -1 else 0. So when the value matches the criteria the condition becomes -1 and matches.
Learning never stops.
vikasmahajan
MVP
MVP

if(year(Month_Year)>=year(addyears(max(total {1}[Month Year Num]),-1)) and Month_Year<= $(vDisplayMaxMonthYear) ,Month_Year)

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.