Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have the following script
LOAD Date, Name, Value
WHERE Weekday(Date) = true ;
I only want the dates that occurs on weekdays.
Any assistance is appreciated.
Kind Regards
Dreamer78692
Hi,
Try:
LOAD
Date, Name, Value
WHERE
Weekday(Date)<>'sat.' AND Weekday(Date)<>'sun.' ;
(check before that your DayNames is 'sat.' for saturday and 'sun.' for sunday)
Try this:
LOAD Date, Name, Value
WHERE Weekday(Date) <5 ;
Hi,
I tried that but for some reason Monday is also not getting loaded.
Kind Regards
Dreamer78692
Hi
LOAD Date, Name, Value
WHERE Wildmatch(Weekday(Date),'mon','tue','wed','thu','fri');
Hope it helps
Hi,
Try:
LOAD
Date, Name, Value
WHERE
Weekday(Date)<>'sat.' AND Weekday(Date)<>'sun.' ;
(check before that your DayNames is 'sat.' for saturday and 'sun.' for sunday)
Hi,
Try like this
LOAD
DateFieldName,
*
FROM DataSource
WHERE WeekDay(DateFieldName) <> 'Sat' OR WeekDay(DateFieldName) = 'Sun';
Hope this helps you.
Regards,
Jagan.
A clean way to do this is to use NetWorkDaysDate() function.
LOAD
Date
, Name
, Value
WHERE NetWorkDaysDate(Date, Date) = 1
;