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: 
seahyanzheng
Contributor III
Contributor III

Index Match in Qlikview?

Hi,

I have UL Count and Target UL Count as dimension , UL Count % as UL Count /Target UL Count and Rank as the rank function.

How do i create a text box where i pull UL count (eg. 70) when Rank = 1?

Thanks!

Capture.PNG

1 Solution

Accepted Solutions
Anil_Babu_Samineni

If so, My expression should work. any way can you try this?

FirstSortedValue([UL Count],-Aggr((Sum([UL Count])/Sum([Total UL Count])), [UL Count]))

OR

FirstSortedValue([UL Count],Aggr((Sum([UL Count])/Sum([Total UL Count])), [UL Count]))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

24 Replies
Anil_Babu_Samineni

May be this?

If(Rank(Sum([UL Count])/Sum([Total UL Count]))=1, [UL Count])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Chanty4u
MVP
MVP

try this

text box

=[UI Count]&' '& Rank

surendraj
Specialist
Specialist

May be This!!

Only({<Rank={1}>}[UI Count])

seahyanzheng
Contributor III
Contributor III
Author

It returns blank though.

Do i have to aggr "Rank(Sum([UL Count])/Sum([Total UL Count]))"?

seahyanzheng
Contributor III
Contributor III
Author

I need to return only 1st rank though

Anil_Babu_Samineni

How you got [UL Count %] ??

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
seahyanzheng
Contributor III
Contributor III
Author

As Rank is an expression with Rank(total "UL Count"/"Target UL Count"), i tried this instead:


Only({<Rank(total "UL Count"/"Target UL Count")={1}>}[UI Count])


but i got error in set modifier expression

seahyanzheng
Contributor III
Contributor III
Author

With this expression - UL Count /Target UL Count

surendraj
Specialist
Specialist

I thought you need to do in separate way..first you need to calculate rank then you can try with above expression.it will works.