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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic Bar chart based on list box input values

Hi,

I have the requirement like countries in x-axis and sum(sales) in y axis.

i have list box contains 30 countries,

Requirement is like this:

list the top 4 countries whose sales greater than sales of 'india'.Here 'india' is selected from list box item.

suppose i select 'UK' from list box items.Let me know how to proceed for solution.input data must be from list box.

regards

Mahesh

3 Replies
Nicole-Smith

See the attached example.  Make sure to look at the Dimensions, Dimension Limits, and Expression tabs of the bar chart.

Not applicable
Author

Find the solution in attached qvw.

Though there may be many others ways, I have used Alternate states.

Regards,
Prabhu

Not applicable
Author

U can use the below expression..

=if(Sum(Sales) >Sum({1<Field={"$(=getfieldselections(Field))"}>} Sales),Sum(Sales))

Regards,

Kabilan K.