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

Year to date Set Analysis

I have the following set analysis for calculating Year to Date based on calendar year:

Screen Shot 2016-05-03 at 09.44.25.png

where MonthID is calculated as follows:

Screen Shot 2016-05-03 at 09.49.11.png

i have a fiscal month variable which is vFM = 6 denoting when the month the fiscal year starts. How can this be adjusted to come to a Year to Date based on the fiscal year calendar?

Regards.

12 Replies
sunny_talwar

Can you check if this is giving you the right date range. Try it in a text box object

='>=' & Date(YearStart(Max(Date), 0, 6), 'MM/DD/YYYY') & '<=' & Date(Max(Date), 'MM/DD/YYYY')

Anonymous
Not applicable
Author

HI Sunny

Changed your expression to the following since my fiscal year start month is 10:

Screen Shot 2016-05-04 at 06.58.10.png

This gives the correct date range as follows:

Screen Shot 2016-05-04 at 06.57.26.png

I then changed the expression for Year to Date to:

Screen Shot 2016-05-04 at 07.07.21.png

This gives the same value as the old value as follows:

Screen Shot 2016-05-04 at 06.59.02.png

Regards.

Anonymous
Not applicable
Author

Hi Sunny

Ended up using flags as follows:

Screen Shot 2016-05-04 at 08.45.46.png

then using set analysis with

Screen Shot 2016-05-04 at 08.46.13.png

giving the correct result as :

Screen Shot 2016-05-04 at 08.46.37.png

How do i do the following flags:

  1. Previous month
  2. Previous two months
  3. Quarter to date
  4. Last year quarter to date
  5. Same quarter of last year

Regards