10 Replies Latest reply: Sep 18, 2015 6:46 AM by Sunny Talwar

# how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

how to show top 10 values in 10 different text boxes..........any one know pls help me...

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

May be use FirstSortedValue() function or Max() function. To give a better response, it would be best if you can share some sample data.

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...
1. Max(NumericField)
2. Max(NumericField, 2)
3. Max(NumericField, 3)
4. Max(NumericField, 4)
5. Max(NumericField, 5)
6. Max(NumericField, 6)
7. Max(NumericField, 7)
8. Max(NumericField, 8)
9. Max(NumericField, 9)
10. Max(NumericField, 10)
• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

tanq for replay.......

FYI..

I have one dimension like..

region,total

east  10

west   15

south 20

north 16

center 11

the above example we want to display top 3 values in 3 text boxes.

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

Are you looking to see top three regions or top 3 totals? For totals you can use Max() function like above and for top 3 region you can use FirstSortedValue() function.

FirstSortedValue(Region, -Total)

FirstSortedValue(Region, -Total, 2)

FirstSortedValue(Region, -Total, 3)

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

In text box I want to display like...

text box1-  west: 15

text box2-  north:16

text box3-   south:20

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

use rank() and you can take the value for rank 1 to 10

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

hi gowtham,

can u give me sample expression....

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

for text box 1

=FirstSortedValue(Region, -Total, 3) & ': ' & Max(Total, 3)

for text box 2

=FirstSortedValue(Region, -Total, 2) & ': ' & Max(Total, 2)

for text box 3

=FirstSortedValue(Region, -Total) & ': ' & Max(Total)

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

its showing error......nested aggregation not allowed.

• ###### Re: how to show top 10 values in 10 differnt text boxes..........any one know pls help me...

The three expressions seems to be working well for me in Qlik Sense:

for text box 1

=FirstSortedValue(Region, -Total, 3) & ': ' & Max(Total, 3)

for text box 2

=FirstSortedValue(Region, -Total, 2) & ': ' & Max(Total, 2)

for text box 3

=FirstSortedValue(Region, -Total) & ': ' & Max(Total)