Hello friends,
I have the following VBA code for a small university project that I need to write in Alteryx:
Public Function Smolders (x As Variant) As Date
If IsNull (x) Or x = " " Then Smolders = "1.1.1930"
Exit Function
End If
Smolders = 5 - Weekday (x, 2)+ x
If Smolders > x Then Smolders = Smolders - 7
End Function
Can someone explain to me exactly how to do this? I need to rewrite this for a specific column called "BottleStart" which represents a date. I have already tried to get Chatgbt to explain it to me, but he only comes up with errors. I hope you can help me. Thanks in advance
Best regards