Notifications
Clear all
Topic starter
I am trying to use this formula in a data display (MEL expression) but nothing happens. Does anyone know what is wrong?
val(OBSNOW("# REFILLS")) - ({durationdays(obsnow("LASTREFILL"), str(._TODAYSDATE))} * val(OBSNOW("PILL")))
In other words-
Obs 1 - (days since last refill * Obs 2)
This part works by itself in another data display:
{durationdays(obsnow("LASTREFILL"), str(._TODAYSDATE))}
Posted : May 16, 2013 3:44 am
move {} to outside of all code
Posted : May 16, 2013 3:58 am
Topic starter
Of course, thanks that worked great.
Posted : May 16, 2013 4:06 am