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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Exclude value from dimention

Hi,

How can I exclude a value from showing up in dimension

like the dimension in my case is Year([Fieldname])

And the field shows 2012  2013   2014    2015

I would like to exclude 2012.

Thxs,

1 Solution

Accepted Solutions
alec1982
Specialist II
Specialist II
Author

If(Year([Fieldname]) <> '2012', Year([Fieldname]))

View solution in original post

2 Replies
erichshiino
Partner - Master
Partner - Master

Hi, Alec.

Are you using this dimension in a list or in a chart?

You can change your it a little bit to exclude 2012.

For example, instead of Year([Fieldname]), you can use:

= if ( Year([Fieldname]) > 2012, Year([Fieldname]) )

or

= if ( Year([Fieldname]) > year(today()), Year([Fieldname]) )

In a listbox, the result will 2013, 2014...

In a chart, 2012 results will be a in a line where Year is NULL.

You can hide this by checking the option 'Hide when value is null' on the dimension tab of your chart.

... you can also create a Year field, instead of using Year([Fieldname]) in your charts. this might increase the performance a little bit.

hope this helps,

Erich

alec1982
Specialist II
Specialist II
Author

If(Year([Fieldname]) <> '2012', Year([Fieldname]))