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: 
sat_tok52
Creator
Creator

Conditional Display text

Hi All,

I have to show conditional dimension Top 20 and Mid 60 and bottom 20  .if the user selected a filter   based on that selection the records count i have to display Top and mid and bottom  .  Any help.

-Sateesh

 

Labels (1)
3 Replies
Yoshidaqlik
Creator II
Creator II

Hi

in that case you should put the expression in the dimension

I'm guessing that your filter will be a variable

if(var_1 = 'Top20',
	aggr(
    	if(
        	Rank(Sum(value),4)<= 20,
            dimension_xxxxxx
        )
    ,dimension_xxxxxx),
if(var_1 = 'Top21 at 60',
	aggr(
    	if(
        	Rank(Sum(value),4)> 20 and Rank(Sum(value),4)<= 60,
            dimension_xxxxxx
        )
    ,dimension_xxxxxx),
    aggr(
    	if(
        	Rank(Sum(value),4)> 60,
            dimension_xxxxxx
        )
    ,dimension_xxxxxx)
))

 

Regards

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
sat_tok52
Creator
Creator
Author

Hi Yoshidaqlik,

Thanks for your quick replay. I am not using variables as filter.

Thanks

 

Yoshidaqlik
Creator II
Creator II

So would it be as if they were graphs of different tables is this?

Top 20:

aggr(
    	if(
        	Rank(Sum(value),4)<= 20,
            dimension_xxxxxx
        )
,dimension_xxxxxx)

 

Mid 21 - 60:

 

aggr(
    	if(
        	Rank(Sum(value),4)> 20 And Rank(Sum(value),4)<= 60,
            dimension_xxxxxx
        )
,dimension_xxxxxx)

 

 

Botton 20:

 

aggr(
    	if(
        	Rank(-Sum(value),4)<= 20,
            dimension_xxxxxx
        )
,dimension_xxxxxx)

 

regards

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng