Forum Discussion
IF formular
- 7 years ago
Hi SN1900
Please see the below.
Column = VAR x = ( CALCULATE( MAX( Event[Event Date NEW UTC] ), Event[STATUS] = "DELIVERED" ) - Delivery[Delivery Appointment DATE] ) * 1 RETURN SWITCH( TRUE, x = 0, "On Time", x > 0, "Late", "Early" )Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
Hi Mariusz,
thanks for your fast response!
I tried your formular by adding the new column with the formular in the dataset shipment Analysis.
Therefore I could only select the "Delivery Appointment" data as dropdown and I had too enter in the "Event data new utc" manually as this data comes from another field.
Now I reiceved this error message saying:A single value for column "event data new utc" in table "otm event status cannot" be determined.
Just for your information.
It is possible that there are more event dates but only one delivery appointment date. could that be the issue?
Many thanks and best regards
Niclas
Hi SN1900
Sorry the solution I gave you works on the assumption that the data was in one table, what is the relationship between this tables.
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.