I’m attempting to address an issue with duplicated data (that pulls from another source), and am trying to use the following calculation to address it. So far, I keep running into the same syntax issue when attempting to save, but I’m unsure where/which section of the syntax is incorrect.
Calculation: ifelse(lead({order_id},[{order_date} ASC],1)=firstValue({order_id]},[{order_date} ASC],[{order_date}]),‘Duplicate’,‘Keep’)
I’ve attempted the following:
- Order ID as string,
- Order ID as decimal/int,
- toString(order_date)
Any solutions or workarounds would be great. In an ideal world I understand that the source data should be clean as possible but this currently isn’t available.