Skip to main content
Question

I'm doing a date change analysis to understand how many days a sales order delivery date is changed up or out. I have the change from and change to dates. Anyone know of a way to incorporate the day of week? Ex, changed from monday to tuesday?

  • January 13, 2023
  • 2 replies
  • 0 views

I'm doing a date change analysis to understand how many days a sales order delivery date is changed up or out. I have the change from and change to dates. Anyone know of a way to incorporate the day of week? Ex, changed from monday to tuesday?

2 replies

teuku.faruq13
Level 9
Forum|alt.badge.img+1

Hello @anne.molle ,

 

REMAP_VALUES(TO_STRING(DAY_OF_WEEK("LFA1"."TS_ERDAT")), ['0', 'Sunday'], ['1', 'Monday'], ['2', 'Tuesday'], ['3', 'Wednesday'], ['4', 'Thursday'], ['5', 'Friday'], ['6', 'Saturday'])

 

Above example assume TS_ERDAT already in date format. Hope help!


  • Author
  • Level 2
  • February 8, 2023

Hi Teuku, thanks for this suggestion! 😀 Anne