Best Of
Re: Beast Mode Calculation Help Needed
Marcel, I found the issue on this. I had two different numbers labor and
material being represented by a single field jt158_WTExtendedCost that
are differentiated by the WT#. I created a Function in the ETL to break
this out and I was able to get it to work with your second formula.
Thank you for your assistance.
SUM(SUM(`Sales Price`- `Actual Cost`) FIXED (BY `SO#`))/SUM(SUM(`Sales Price`) FIXED (BY `SO#`))
Re: Beast Mode Calculation Help Needed
I see in your example that the 3 entries share the same SO#, so would the % you're trying to calculate be at the SO# level? if that is the case if you display your card by SO# instead of WTSTEP a formula like the one below might get you what you need:
SUM(`Sales Price`- `Actual Cost`)/SUM(`Sales Price`)
If for some reason you'd need to display things at the WTSTEP level but still need the same percentage to show on each line for the same SO#, you'd need to use a FIXED function to do this for you, something like:
SUM(SUM(`Sales Price`- `Actual Cost`) FIXED (BY `SO#`))/SUM(SUM(`Sales Price`) FIXED (BY `SO#`))
Hope this helps, (I'm guessing Actual Cost would be the addition of the 4 columns you have with the Cost word in them, so you'd need to put those in parenthesis and add them instead).
Re: Beast Mode Calculation Help Needed
I think your beast mode calculation should be as below.
(SUM(`Sales Price`) - SUM(`Actual Cost`))/SUM(`Sales Price`)
Try and let us know.
Re: HELP! Can not get this ETL Formula to Validate
Good clarification @MichelleH
@jtrollinger it should end up with something like this
CASE WHEN `HdrParentItemCode` IN ('ZROUGHIN', 'ZWATER', 'ZSEWER', 'ZROCK', 'ZVANGUARD') THEN 'Rough-IN'
WHEN `HdrParentItemCode` IN ('ZTOPOUT', 'ZGAS') THEN 'Topout'
WHEN `HdrParentItemCode` IN ('ZTRIM','ZDROPIN') THEN 'Trim'
WHEN `HdrParentItemCode` IN ('ZPUNCH') THEN 'Punch'
ELSE
'Others'
END

