Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

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...

1 Solution

Accepted Solutions
sunny_talwar

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

View solution in original post

10 Replies
sunny_talwar

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

sunny_talwar

  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, 😎
  9. Max(NumericField, 9)
  10. Max(NumericField, 10)
Not applicable
Author

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.

sunny_talwar

‌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)

Not applicable
Author

In text box I want to display like...

text box1-  west: 15  

text box2-  north:16

text box3-   south:20            

gautik92
Specialist III
Specialist III

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

Not applicable
Author

hi gowtham,

can u give me sample expression....

sunny_talwar

‌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)

Not applicable
Author

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