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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

bar chart

hi

i am having three list boxes named country,capital,inflation rate. i want to create a bar chart showing the top 5 countries with highest inflation rates.

what expression must be used and explain the syntax in detail??

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You can do it by the solution given by v.iyyappan if you want to restrict it by expression then you can go with this

     =Sum({<Country={"=Rank(Sum(InflationRate))<6"}>} InflationRate)

Celambarasan

View solution in original post

8 Replies
v_iyyappan
Specialist
Specialist

Hi,

     Use the Country as Dimension and Expression like = Sum(inflation rate) and and Sorting tab Y Value as ' Descending Order ',

Go to presentation tab and set the Dimension Limitations as Max visible no = 5,

Regards,

Iyyappan

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You can do it by the solution given by v.iyyappan if you want to restrict it by expression then you can go with this

     =Sum({<Country={"=Rank(Sum(InflationRate))<6"}>} InflationRate)

Celambarasan

Not applicable
Author

its not working.it is arranging the inflation rate in descending order but not showing the top 5.

v_iyyappan
Specialist
Specialist

Hi

          I attach a sample file.Hopes its helpful for u.

Regards,

Iyyappan.

Not applicable
Author

thnx for the solution its working perfectly.

vitul

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     If it works for you then mark it as correct answer it will be helpful for others who searching the discussions with the same type of problem.

Celambarasan

Not applicable
Author

Hi

For showing top 5 value ,acorrding to that field keep its order descending then go presentation  check max visible number  and give value 5.

or you can do it more  interactinve by using variable eg (vtop ).

For it create a variable pass any value set its range for end user (he can choose how many values  want to see as highest record)

then use this variable '=$(vtop)' in max visible records in presentation.

I think it will help u.

Not applicable
Author

Hi Vitul,

I agree with Celambarasan statement. If you find the answer is right then mark it as correct answer, then only the people who ll face the same problem ll get benefit.