Hi I inherited this long expression and I'm having trouble understanding the functions used. Can someone help me translate as to what it is doing?
Future Sell Price Est: IIf([Price Code Formula] In ("Cost","PR1","PR2","PR3","2xCost","Cost Plus","2X Cost Plus"),Switch([Price Code Formula]="Cost",[Future Cost],[Price Code Formula]="PR1",[Future PR1],[Price Code Formula]="PR2",[Future PR2],[Price Code Formula]="PR3",[Future PR3],[Price Code Formula]="2xCOST",[Future Cost]*2,[Price Code Formula]="Cost Plus",[Future Cost]*(1+[Current Cost Plus %]),[Price Code Formula]="2X Cost Plus",(2*[Future Cost])*(1*[Current Cost margin])),IIf([Price Code Formula] In ("Fixed Plus","Best Cost Plus"),Switch([Price Code Formula]="Fixed Plus",[Current Sell Price],[Price Code Formula]="Best Cost Plus",[Future Cost]*(1+[Current Cost Plus %])),"Can't Determine"))
and
Future Sell Price Estimate: CCur(IIf(IsNumeric([Future Sell Price Est])=-1,[Future Sell Price Est],Switch([Price Code Formula]="PR3 Plus",[Future PR3],[Price Code Formula]="PR2 Plus",[Future PR2],[Price Code Formula]="PR3 Less",[Future PR3],[Price Code Formula]="PR2 Less",[Future PR2],[Price Code Formula]="Cost Plus (Margin)",IIf([Cost % Change]<0,[Current Sell Price],[Future Cost]/(1-[Current Cost Margin])),True,[Future PR1])))
and what's abs().
Thanks!
Future Sell Price Est: IIf([Price Code Formula] In ("Cost","PR1","PR2","PR3","2xCost","Cost Plus","2X Cost Plus"),Switch([Price Code Formula]="Cost",[Future Cost],[Price Code Formula]="PR1",[Future PR1],[Price Code Formula]="PR2",[Future PR2],[Price Code Formula]="PR3",[Future PR3],[Price Code Formula]="2xCOST",[Future Cost]*2,[Price Code Formula]="Cost Plus",[Future Cost]*(1+[Current Cost Plus %]),[Price Code Formula]="2X Cost Plus",(2*[Future Cost])*(1*[Current Cost margin])),IIf([Price Code Formula] In ("Fixed Plus","Best Cost Plus"),Switch([Price Code Formula]="Fixed Plus",[Current Sell Price],[Price Code Formula]="Best Cost Plus",[Future Cost]*(1+[Current Cost Plus %])),"Can't Determine"))
and
Future Sell Price Estimate: CCur(IIf(IsNumeric([Future Sell Price Est])=-1,[Future Sell Price Est],Switch([Price Code Formula]="PR3 Plus",[Future PR3],[Price Code Formula]="PR2 Plus",[Future PR2],[Price Code Formula]="PR3 Less",[Future PR3],[Price Code Formula]="PR2 Less",[Future PR2],[Price Code Formula]="Cost Plus (Margin)",IIf([Cost % Change]<0,[Current Sell Price],[Future Cost]/(1-[Current Cost Margin])),True,[Future PR1])))
and what's abs().
Thanks!