Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
BARC’s The BI Survey 19 makes it official. BI users love Qlik. GET REPORT
silambarasan
Contributor II

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)

View solution in original post

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)

View solution in original post

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 )