Original good script:
New Column( "Target Progress",
Numeric,
"Continuous",
Format( "Percent", 12, 0 ),
Formula( :Actual Training Time / :Required Period )
);
New Column( "Meet Goal",
"Numeric",
formula( If( :Certified == "Y", "Yes", :Actual Progress >= :Target Progress, "Yes", "No" ) )
);
target progress is a percent, above script is workabel for old criteria of Actual Progress >= :Target Progress,
but now we want to change to actual>=(target progress-10%) then is ok. Pls check why below is not work and how to edit below?
New Column( "Target Progress", Numeric, "Continuous", Format( "Percent", 12, 0 ), Formula( :Actual Training Time / :Required Period ) );
New Column( "Meet Goal",
"Numeric",
formula(
If(
:Certified == "Y", "Yes",
:Actual Progress >= (:Target Progress - 10%), // this is not work
"Yes",
"No"
)
)
);