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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

variable issue

Hey!!

i am pretty much new to Qlikview.

i wanted to know how can we find the "top sales(or something else) and bottom sales" using a variable.

need some guidance please.

1 Solution

Accepted Solutions
oleg_orlov
Creator
Creator

Hi!

If you want to get list of top/bottom values (for example Customers) you can try this:

'= Concat(if (Aggr(Rank(Sum(Sales)), Customer) <= 3, Customer), ',')'     // top 3 customers

'= Concat(if (Aggr(Rank(-Sum(Sales)), Customer) <= 3, Customer), ',')'    // bottom 3 customers

Oleg

View solution in original post

7 Replies
vikasmahajan

PFA sample Application.

vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Michiel_QV_Fan
Specialist
Specialist

It is possible to work with variables. The question is, why?

You can use dimension limits to generate a top and bottom sales.

You can set a variable in the dimension limits to set a higher and lower value.

Please give more information on what you want to achieve, a screen shot might help too.

Not applicable
Author

Hello Michiel,

thanks for replying

i know the method you just described but the thing is i want another way using variables.

is it possible?

ashwanin
Specialist
Specialist

Hi Gatik,

Please describe on which you want to took the help. Because top 5 and below 5 and variables you know.

if you let know, what exactly you required then it helps to define that thing.

MK_QSL
MVP
MVP

Please find enclosed file.

You dont need Variable for this...

Not applicable
Author

Hey Ashwani

i have been assigned a task to find top 5 or bottom 5 using variables

we can find them using the dimension thing but i need to do it while using some variable.

i dont know how to do it with variables

oleg_orlov
Creator
Creator

Hi!

If you want to get list of top/bottom values (for example Customers) you can try this:

'= Concat(if (Aggr(Rank(Sum(Sales)), Customer) <= 3, Customer), ',')'     // top 3 customers

'= Concat(if (Aggr(Rank(-Sum(Sales)), Customer) <= 3, Customer), ',')'    // bottom 3 customers

Oleg