Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

rsingh43
Contributor

Year Filter

Hi,

I have a date expression which I would like to restrict from 2017 onwards.

=date(FLOOR(MonthEnd(StockDate)),'MMMYYYY')


Is it possible to add 'YEAR(StockDate)>2016 ' to the above expression?

Thank you in advance!

Tags (2)
3 Replies
agigliotti
Honored Contributor II

Re: Year Filter

what's your goal?

rsingh43
Contributor

Re: Year Filter

At the moment I have data going back to 2012, so hoping to update this expression to only show data from 2017.

Khan_Mohammed
Honored Contributor II

Re: Year Filter

In back end you can add where condition to your script

Load

Year,

....

From ABC

Where Year >='2017';

Or in front end use

if(Year>=2017,Year) as your dimension

or You can create same dimension in your script if you want to allow all the years data but in one table if you only want data from 2017

Load

Year,

if(Year>=2017,Year)  as Years

From ABC;

Community Browser