Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Stanislav1
Contributor II
Contributor II

Using Inline table to make top N selection + all values

Hello there!

I will try to explain this issue to the best of my abilities. I have an inline table, which is connected to a button list, from where  a user can pick a selection from 3,5,10 to show the top 10 values in a table.

Stanislav1_0-1668092692200.png

Inline table

Stanislav1_1-1668093015415.png

Front end table

 

How can I make a selection, where the user can see all of the values from the selected measure? Thank you in advance

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Add Another Selection Value

_TopN:

load * Inline [

_rank_ID,_rankValue

1,3

2,5

3,10

4,ALL

];

 

Then instead of using Field Limitations use a Measure as below

=if(_rank_ID=4,sum(somemeasure) , if(rank(sum(somemeasure),4,2)<= _rankValue ,  sum(somemeasure)))

 

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

View solution in original post

3 Replies
deepanshuSh
Creator III
Creator III

You can put an if and else condition, such as below in the limitation section and restrict the value based on the value section. Or in a better way create an variable and use variable input box for the same. 

if(Value =3, 3,
if(Value=5, 5,
if(Value=10, 10)))

Trial and error is the key to get unexpected results.
vinieme12
Champion III
Champion III

Add Another Selection Value

_TopN:

load * Inline [

_rank_ID,_rankValue

1,3

2,5

3,10

4,ALL

];

 

Then instead of using Field Limitations use a Measure as below

=if(_rank_ID=4,sum(somemeasure) , if(rank(sum(somemeasure),4,2)<= _rankValue ,  sum(somemeasure)))

 

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

Thank you it worked for me.