T
Tony in Michigan
Hello,
I have a multi step problem that I'm trying to streamline and automate. All
of the required fields are in the same table. I'd like to reduce the number
of queries, and especially the hand work that the user applies to the data.
Step 1,
I can't get the syntax correct (still a newbie)
I need to calculate and update field P_Price.
Here is the formula I need to get to work.
If Q1 > 0 then P_price = Value/Ql, If Q1=0 then P_price = value/Q2
Step 2
I need to group by part_num and determine if the calculated P_Price is +/-
ValueRange% from median P_price. This may be a static value, or possible
user input, or at some later point, calculating ½* (Max-min P_price) and
averaging this result by source country.
Step 3
I need to output the out of range results to a table by transaction # and
invoice# and add calculated field variance – Range%
I have a multi step problem that I'm trying to streamline and automate. All
of the required fields are in the same table. I'd like to reduce the number
of queries, and especially the hand work that the user applies to the data.
Step 1,
I can't get the syntax correct (still a newbie)
I need to calculate and update field P_Price.
Here is the formula I need to get to work.
If Q1 > 0 then P_price = Value/Ql, If Q1=0 then P_price = value/Q2
Step 2
I need to group by part_num and determine if the calculated P_Price is +/-
ValueRange% from median P_price. This may be a static value, or possible
user input, or at some later point, calculating ½* (Max-min P_price) and
averaging this result by source country.
Step 3
I need to output the out of range results to a table by transaction # and
invoice# and add calculated field variance – Range%