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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Pomna
Creator III
Creator III

Master Calendar

Experts,

I have a master calendar that works fine but am having issues getting 'YearQuarter'.  Any suggestions how to achieve that would be appreciated. Thank you

3 Replies
tresB
Champion III
Champion III

Could you explain with an example?

Pomna
Creator III
Creator III
Author

The below is a sample calendar (Not Mine). It has year, quarter, month , day and week. I need the calendar to show YearQuarter.  For example

2021 Q1

2021 Q2

 

CalendarMaster:

LOAD

    Date(InvoiceDate) AS InvoiceDate,

    Year(InvoiceDate) AS Year,

    'Q' & Ceil(Month(InvoiceDate) / 3) AS Quarter,    

    Month(InvoiceDate) As Month,

    Day(InvoiceDate) As Day,

    Week(InvoiceDate) As Week;

Load Date(MinDate + IterNo() -1 ) AS InvoiceDate While (MinDate + IterNo() - 1) <= Num(MaxDate);

Load

    Min(InvoiceDate) AS MinDate,

    Max(InvoiceDate) AS MaxDate

RESIDENT Invoice;

tresB
Champion III
Champion III

Is it not just concatenation?  Like:

Year & ' ' & Quarter   AS   YearQuarter