Hi,
This is a simple one .
I am picking up someone else’s code and need to clarify a point.
I have the following measure that is using Variables and my question is based around the IF that is in Bold.
Does the IF check the AvailableTime _PER to see if it is greater than 0 or just check whether there is something in the Variable? If I want to check whether it is greater than 0 do I need to add the > 0. I have never seen a measure written in this way and have not been available to find an explanation.
Availability_PER:=VAR
AvailableTime_PER = [AvailableTime_PER]
VAR
AvailableTime_PERPlusDowntimeUnPlanned_PER = [AvailableTime_PER] + [DowntimeUnPlanned_PER]
RETURN
**IF (**
** AvailableTime_PER,**
DIVIDE(AvailableTime_PER, AvailableTime_PERPlusDowntimeUnPlanned_PER),
BLANK()
)
Thanks
Chris