Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have requirement to show the Fiscal Quarters in the below format
Please help me to obtain this format in Qlikview. Currently, I have below syntax which shows the Quarters correctly however, the YYYY part is missing and yes I do want to see 2019 from Apr to Dec of 2018 year.
'Q' & Ceil(Month(Relevant_Date)/3),
'Q' & alt (if(Month(Relevant_Date)<4,4),if(Month(Relevant_Date)<7,1),if(Month
(Relevant_Date)<10,2),3) as Quarter,
Hi Aiolos,
Thanks for the reply. Yes, I don't want to use the hard code way. I looking forward to use the syntax in the Qlikview Editor, so That I can use it in Dimensions whenever I want them .
Thanks,
Arun
Hi Arun,
Trying using the following Script
LOAD
Relevant_Date,
'Q' & Ceil (Month(Relevant_Date)/3) as Quarter,
If(Month(Relevant_Date)<4,'F4'&'-'&Year(Relevant_Date),
If(Month(Relevant_Date)<7,'F1'&'-'&Year(AddYears(Relevant_Date,+1)),
If(Month(Relevant_Date)<10,'F2'&'-'&Year(AddYears(Relevant_Date,+1)),'F3'&'-'&Year(AddYears(Relevant_Date,+1)))))as Fiscal Calendar
Hi ,
Thank for your solution. Your syntax worked for me.
If(Month(Relevant_Date)<7,'F1'&'-'&Year(AddYears(Relevant_Date,+1)),
If(Month(Relevant_Date)<10,'F2'&'-'&Year(AddYears(Relevant_Date,+1)),'F3'&'-'&Year(AddYears(Relevant_Date,+1)))))as Fiscal Calendar
Thanks & Regards,
Arun
Hi , Thanks for the reply. I really appreciate the efforts you have taken.
I tried this in my Dimension section and it did not work for me. Please let me if know I should be using this syntax somewhere else.
Also, please note that my issue got fixed by using the following syntax in the QVW editor which was provided by another contributor like you.
If(Month(Relevant_Date)<7,'F1'&'-'&Year(AddYears(Relevant_Date,+1)),
If(Month(Relevant_Date)<10,'F2'&'-'&Year(AddYears(Relevant_Date,+1)),'F3'&'-'&Year(AddYears(Relevant_Date,+1)))))as Fiscal Calendar
Once again thanks for all the efforts.
Thanks & regards,
Arun