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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exclude values in Chart

I have a chart object (table) with result over the last 5 years per year.

In this table the revenue is displayed per year over the last 5 years per customer.

I now want to hide al customers that didn't buy anything in 2014,2013,2012, 2011 so I want to show only the customer with revenue in 2015.

Any suggestions on how to do this?

6 Replies
jcampbell474
Creator III
Creator III

Maybe I'm not understanding you correctly, but can you try placing a check in the Presentation Tab > Suppress Missing checkbox?  Perhaps the Dimensions > Suppress when Value is Null, too?

rubenmarin

Hi Chris, maybe using a calculated dimension for Customer, i.e.:

=Aggr(If(Sum({<YearField={'>$(=Year(Today())-5)<$(=Year(Today()))'}>} SalesField), CustomerField), CustomerField)

And checking 'Supress when value is null'. That will filter the customers with Sales<>0 between 2011 and 2014

Not applicable
Author

Maybe it is easier with an example

This is the table out put as it is

  

Klantcalculated sum revenu  2015Calculated sum revenu  2014Calculated sum revenu  2013Calculated sum revenu  2012Calculated sum revenu  2011
A10001000800700850
B10101000850750800
C10201000850750850
D10301000725750800
E10401000000
F10501000000
G10601000120010001100
H10701000000
I10801000400550400

And I want the output to show only the new customers like this

  

Klantcalculated sum revenu  2015Calculated sum revenu  2014Calculated sum revenu  2013Calculated sum revenu  2012Calculated sum revenu  2011
E10400000
F10500000
H10700000
Not applicable
Author

I added an example, can you check this?

Not applicable
Author

I added an example which show maybe better what I want to do?

rubenmarin

Hi Chris, I can't see the example (It's an uploaded sample?) but this last post is asking the opposite of what I understand, try if this calculated dimension works.

=Aggr(If(Sum({<YearField={'>$(=Year(Today())-5)<$(=Year(Today()))'}>} SalesField)=0, Klant), Klant)