Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
silambarasan
Contributor

How to get in between rank values?

NameValueRank
Chandrashekar231
priya222
Acharya213
Hareesh204
Suprith185
Rangaswamaiah186
Rachagolla177
BALAJI178
Rajashekar169
Lokesh16

10

How to get in between rank values?

In a text object i want sum of Value for rank 4 to 8

Tags (3)
1 Solution

Accepted Solutions
MVP
MVP

Re: How to get in between rank values?

If you have Rank field available in data you can try like:

Sum({<Rank={'>3 <9'}>}Value)

Else,

Sum({<Name={"=Rank(Sum(Value))>3  and Rank(Sum(Value))<9"}>}Value)

4 Replies
techvarun
Valued Contributor II

Re: How to get in between rank values?

=Sum(if (Rank >=4 and Rank <=8,Value))

MVP
MVP

Re: How to get in between rank values?

If you have Rank field available in data you can try like:

Sum({<Rank={'>3 <9'}>}Value)

Else,

Sum({<Name={"=Rank(Sum(Value))>3  and Rank(Sum(Value))<9"}>}Value)

md_qlikview
Contributor II

Re: How to get in between rank values?

Hi,

Try below set expression

Sum({<Rank={'>3 <9'}>}Value)

Not applicable

Re: How to get in between rank values?

Have a look at this function in a text object

=Sum({<Name= {"=rank(Value,Name)<= 8"}>} Value )-Sum({<Name= {"=rank(Value,Name)<= 3"}>} Value )

Community Browser