Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
gzboy008
Contributor
Contributor

last year month figure display in current month

Hi forum, I'm in a deep puzzle.

Hope someone can lend me a hand. Thanks in advance!


Here's the story. I have the testing data as below.

data.png
When I press apply filter button. it will set the filtering to retrieve data from 1/1/2014 ~ 2/15/2014.


How can I retrieve the last year figure and display at the same line.


Below's what I expected.

data2.png

20 Replies
crusader_
Partner - Specialist
Partner - Specialist

Hi Kelvin,

PFA. According to this data model it's max I can achieve.

I can suggest you to use Master Calendar in your application and look through this article.

http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/03/ytd

Hope this helps.

Andrei

Anonymous
Not applicable

Hi,

    Chk the attached App.

    Tatz all i cud do to get wat u nided.....

Regardz,

Vaibz 😉

SunilChauhan
Champion
Champion

see the attched and create your idea as per this sample

Sunil Chauhan
gzboy008
Contributor
Contributor
Author

Hi Andrei,

Thanks for your reply.

But I don't want 2013's figure show in the chart.

Untitled.png

gzboy008
Contributor
Contributor
Author

Hi,

Thanks for reply.

I don't want them in different objects.

Any ideas?

Untitled.png

gzboy008
Contributor
Contributor
Author

Hi chauhans85,
Thanks for reply.

I don't want them in different objects.

Untitled.png

Not applicable

Hi,

I simply changed Andrei's Version and added a Month Field in skript.

THen we use the month as dimension and you can see the values for the current and the last year separately.


See qvw attached...

Hope this is what you were looking for.

Kind regards,

Anthony

Not applicable

Hi,

I simply changed Andrei's Version and added a Month Field in skript.

THen we use the month as dimension and you can see the values for the current and the last year separately.

Unbenannt.JPG.jpg
See qvw attached...

Hope this is what you were looking for.

Kind regards,

Anthony

gzboy008
Contributor
Contributor
Author

Hi Anthony,

I need to have year & month in dimension, as I will have cross year data. So only have months in dimension is not enough. Thanks for your idea. Any other thoughts?