I have the column below in a powerpivot date model
I want to add a calculated column with an if statement that will return new values based on the following conditions
If column "payment terms" contains values 45 or 30 or 35 then return 30 and if it contains 60 then return "58"
I know in standard excel this formula would work =IF(OR(A1=45,A1=35,A1=30),30,58)
I've tried replicating in my data model but I'm getting an error.