Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Try using
'Q' & Ceil(Month(AddMonths(date_calendrier, -2))/3) AS Trimestre_Calendrier,
QuarterName (AddMonths(date_calendrier, -2)) as Trimestre_Année_calendrier,
QuarterStart (AddMonths(date_calendrier, -2)) as Début_Trimestre_Calendrier,
Hi Stephane,
You can try using inline like
Load * Inline [
Month,Quarter
Mar,Q1
Apr,Q1
May,Q1
Jun,Q2
Jul,Q2
Aug,Q2
Sep,Q3
Oct,Q3
Nov,Q3
Dec,Q4
Jan,Q4
Feb,Q4 ];
Regards,
Tom
Try using
'Q' & Ceil(Month(AddMonths(date_calendrier, -2))/3) AS Trimestre_Calendrier,
QuarterName (AddMonths(date_calendrier, -2)) as Trimestre_Année_calendrier,
QuarterStart (AddMonths(date_calendrier, -2)) as Début_Trimestre_Calendrier,
thank you Ducati.
it runs well now
No thanks. Glad it works. Could you please mark the answer as the correct one?
Hi Ducati,
I would like ti mark the answer, but I don't know why, the button has disapear of the screen... so I can't do that!
You could also try this way - adding below to script & add / delete the months you want in that quarter;
IF (MIXMATCH(LEFT(MONTHNAME(BOOKED_DATE),3),'Jan','Feb','Mar')>0,'Q1')
AS QTR_BOOKED