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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Compare YTD versus PYTD showing sum based on current days in Month.

In the attached example for the month of April I am trying to summarize 2010 versus 2011 by comparing the sum of the # days in 2011 versus the same amout of days in 2010.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi spb,

maybe like attached?

I just added a set for 2010 Date's:

Sum({<Year={"$(=Year(Max(Date))-1)"}, Date= {"<=$(=addmonths(max(Date),-12))"}>} Sales)

Hope this helps,

Stefan

View solution in original post

1 Reply
swuehl
MVP
MVP

Hi spb,

maybe like attached?

I just added a set for 2010 Date's:

Sum({<Year={"$(=Year(Max(Date))-1)"}, Date= {"<=$(=addmonths(max(Date),-12))"}>} Sales)

Hope this helps,

Stefan