Thank you guys. i will def include as much parenthesis as possible going forward. thanks a lot!!!!!
Jose
Jose
--- In vantage@yahoogroups.com, Steven Gotschall <sgotschall@...> wrote:
>
> When I create a calculated field, I find its best to go crazy with the parentheses. Also, I think you need an else statement, so try this:
> ÂÂ
> total((if (partwhse.warehousecode = 'XX') then (partwhse.onhandqty) ELSE (0)))
> ÂÂ
>
>
> ________________________________
> From: neverunmacron <neverunmacron@...>
> To: vantage@yahoogroups.com
> Sent: Thursday, March 21, 2013 3:17 PM
> Subject: [Vantage] PartWhse.onhandqty BAQ Cal Field
>
> ÂÂ
> hello
> i am trying to create a column that shows me the total onhandqty for one of my warehouses. I currently have one column with as a calculate field because the partwarehouse is a summarized table.
>
> In my column where i show all onhandqty the formula is Total(Partwhse.onhandqty)
>
> i have tried total(if partwhse.warehousecode = 'XX' then partwhse.onhandqty) and got a syntax error. i also tried total(find partwhse.onhandqty where partwhse.warehousecode = 'XX' and i keep getting syntax error.
>
> any help?
>
>
>
>
> [Non-text portions of this message have been removed]
>