Using if expression to create field On Time delivery
I am building my first QW document so bear with me if I am a bit slow! I am trying to build a report to measure my suppliers Delivery Performance. For this I am comparing the Confirmed Delivery Date with the actual Delivery date as follows:
GRdelta gives a difference in days. Just to make it simple I would like to start with only measuring late deliveries and have been trying to create a field DP using the following if-expression:
(GRdelta>0, 0, 100) asDP
This did not work however...
I want the field DP so that I can calculate the average Delivery Performance.
What is wrong with the expression? Can someone offer an alternative solution?