Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to write ytd expression if my company starts from april 15th
Create these flags in your master calendar and use the flags in set analysis- for calculations
,InYearToDate(Date-if(month(Date)=4,14,0), today(), 0, 4)*-1 as YTD_flag
,InYearToDate(Date-if(month(Date)=4,14,0), today(), -1, 4)*-1 as Prior_YTD_flag
sum({<YTD_flag={'1'}>}Amount)
sum({<YTDPrior_YTD_flag_flag={'1'}>}Amount)
OR Without flags
sum({<Date={">=$(=Date(YearStart(Max(Date),0,4)+14),'YYYY-MM-DD')<=$(=Date(Max(Date),'YYYY-MM-DD'))"}>}Amount)
As below
,InYearToDate(Date-if(month(Date)=4,14,0), today(), 0, 4) as YTD_flag
,InYearToDate(Date-if(month(Date)=4,14,0), today(), -1, 4) as Prior_YTD_flag
hi vinieme
can you explain briefly as i am unable to understand which you have posted
Create these flags in your master calendar and use the flags in set analysis- for calculations
,InYearToDate(Date-if(month(Date)=4,14,0), today(), 0, 4)*-1 as YTD_flag
,InYearToDate(Date-if(month(Date)=4,14,0), today(), -1, 4)*-1 as Prior_YTD_flag
sum({<YTD_flag={'1'}>}Amount)
sum({<YTDPrior_YTD_flag_flag={'1'}>}Amount)
OR Without flags
sum({<Date={">=$(=Date(YearStart(Max(Date),0,4)+14),'YYYY-MM-DD')<=$(=Date(Max(Date),'YYYY-MM-DD'))"}>}Amount)