Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a dimension and a date column. Now starting every month I wanted count of days till latest date (count of dates in MTD format) in a column.
A sample file is attached for reference.
I also notice that you have diffrent definition of work days per Name. You can solve this issue with the following script. It is important that the DeteOfOrder is sorted in date order per Name.
LOAD Name, Date(DateOfOrder) as DateOfOrder, autonumber(Name&DateOfOrder, hash256(Name, MonthName(DateOfOrder))) as DaysCountToMTD FROM "MTDdateCount.xlsx" (ooxml, embedded labels, header is 1 lines, table is Sheet1)
;
Yes we have taken only working days into account. Assume all the missing dates are holidays.
I also notice that you have diffrent definition of work days per Name. You can solve this issue with the following script. It is important that the DeteOfOrder is sorted in date order per Name.
LOAD Name, Date(DateOfOrder) as DateOfOrder, autonumber(Name&DateOfOrder, hash256(Name, MonthName(DateOfOrder))) as DaysCountToMTD FROM "MTDdateCount.xlsx" (ooxml, embedded labels, header is 1 lines, table is Sheet1)
;
Thank you, Vegar!! This works as Expected.