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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
tulasiram_bitra
Creator
Creator

How to show Top1 value in Text box ?

Hi Frnz,

I would like to show Top 1 sum(count) based on Sum(Downtime) aggregate of code.

Please find the attached Qvw. Please help me to find this.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like

=Only ( aggr(If( Rank ( Sum ( Downtime ))=1, Sum(COUNT)) ,code) )

View solution in original post

3 Replies
swuehl
MVP
MVP

Maybe like

=Only ( aggr(If( Rank ( Sum ( Downtime ))=1, Sum(COUNT)) ,code) )

sunny_talwar

Try this:

=FirstSortedValue(Aggr(Sum(COUNT), code), -Aggr(Sum(Downtime), code))

tulasiram_bitra
Creator
Creator
Author

Hi ,

Thanks to All.. Both Expressions Working ..Thank you ..