Forum Discussion

MKPartner's avatar
MKPartner
Icon for Helper II rankHelper II
3 years ago
Solved

Conditional column valid to specific period of time

Hello,    I need some help. I have below conditional colum.    = Table.AddColumn(#"Rozwinięty element QR7", "QR7.shift.SQL", each if [QR7.shift] = "A" then "C" else if [QR7.shift] = "B" then "A"...
  • MKPartner's avatar
    MKPartner
    3 years ago

    Again thanks for feedback. I have modified you code to below & it solved my issue: 

     

    = Table.AddColumn(#"Rozwinięty element QR7", "QR7.shift.SQL", each if[WC_Date]>"2023P03WK09" then [QR7.shift] else if [QR7.shift] = "A" then "C" else if [QR7.shift] = "B" then "A" else if [QR7.shift] = "C" then "B" else [QR7.shift])