Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Put a specific filter on a chart ?

Hi,

i have a chart with countries, month, note and sales

GB : 2011/01 : 4 : 1000

France : 2011/01 : 10 : 5000

Germany : 2011/01 : 8 : 6000

GB : 2011/02 : 4 : 1500

France : 2011/02 : 8 : 4000

Germany : 2011/02 : 7 : 7000

with many more countries.

I want to make a global bar graph sorted by sum(sales) with top 10.. Easy isn't it ?

But the problem is i don't want to see the countries for which the avg(note) is < 5

Thus, I absolutely don't want to see GB in this chart

how is it possible ?

Thanks

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Here is your solution.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

5 Replies
IAMDV
Luminary Alumni
Luminary Alumni

Hi,

I had attached the sample QV document for your reference. You should use the below expression...

You need to use the below expression and sort the chart & restrict top 10 in Presentation Tab.

sum( {$<note ={'>5'}>} sales )

Hope this helps! Please let me know if you need further information...

Thanks,

DV

Not applicable
Author

nice answer but it's not exactly what i wanted : i need the avg(note) <5

for example if you change the criteria to

sum( {$<note ={'>=10'}>} sales )

you see only France in your example.

But in my request, even France should not appear because it has a note of 8 and a note of 10 and the average is <=10

i want to check the average note, not only the lines with a good note

i'm sure you can help me

thanks

IAMDV
Luminary Alumni
Luminary Alumni

Oops! My mistake... I haven't read it completely. In that case, you can use simple IF statement, something like this...

IF(Avg(note) >= 10, sum(sales), 0)

Please do let me know if I am missing something!

Cheers - DV

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Here is your solution.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
IAMDV
Luminary Alumni
Luminary Alumni

I was about to provide same solution as Kaushik's. But I am little late now

Please use Kaushik's solutions compared to the one I had provided. Because Set Analysis is faster than the IF statements when you have huge dataset.

Cheers - DV