Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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" else if [QR7.shift] = "C" then "B" else [QR7.shift])
This code is valid for only until Year = 2023, Month = P03 & Week = WK09. Since Week 10 above code was fixed on SQL server. I don't need this anymore for further data but I need this code for past data.
Can you help me how to tweak his code to be valid only until week 09 2023 ?
Thank you
Solved! Go to Solution.
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])
= Table.AddColumn(#"Rozwinięty element QR7", "QR7.shift.SQL", each if[Year]>=2023 and [Week]>="WK 09" 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])
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])
Thanks for feedack. I have copied & pasted your code & I have below error:
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!