Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us for a live Q&A! September 21, 10 AM ET - Onboarding Fast in Qlik Sense SaaS! REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Comparing data over previous years

Hi all,

I would like to compare the turnover for previous years at the same date.

For instance we are the 15th of April 2014, so I would like to compare the turnover at the same date for previous years:

I mean trurnover in 15th April 2009, 15th April 2010, 15 th April 2011 ... 'till 15th 2014 in order to compare the same situation over the years.

An idea how to do that ?

Thanks.

43 Replies
Not applicable
Author

Darek,

I found the issue.

It works when i insert manually the date:

sum({$-(<LESS_YEAR_FL={1}>+<STANDARD_DATE={">$(='11/04/1904')"},SAME_YEAR_FL={1}>)}VAL_SO_NET_PRICE)

But the result is not correct when I use the expression

sum({$-(<LESS_YEAR_FL={1}>+<STANDARD_DATE={">$(=makedate(1904,month($(=v_sel_date)),day($(=v_sel_date))))"},SAME_YEAR_FL={1}>)}VAL_SO_NET_PRICE)

Not applicable
Author

Looks like date formatiing issue....

check what gives you:

=makedate(1904,month($(v_sel_date)),day($(v_sel_date)))
in text field.

Check what value has your v_sel_date variable. I have numeric representation like 38428 (in settings/variable overview ).


Try to change in your calendar object where you setting v_sel_date format (overide document settings/Number tab) to date.



Not applicable
Author

OK works with:

=makedate(1904,month(v_sel_date),day(v_sel_date)))


Thanks a lot. Good job.

Not applicable
Author