Days Stock: [Day Stock]/[Closing @ Cost]
This expression is returning me an error if one of the numbers is '0', I really need it to return a '0'. I have managed to get an IIF statement to work in another part of the same query but for some reason the same format won't work here.
This is the one that works:
GP%: IIf([SumOfCons Ex VAT]<>0,[SumOfGP Amount]/[SumOfCons Ex VAT],0)*100
So my (no doubt faulty) logic told me that this would work:
Days Stock: IIF([Day Stock]<>0,/[Closing @ Cost],0)
Where am I going wrong? As ever, your genius is appreciated..
This expression is returning me an error if one of the numbers is '0', I really need it to return a '0'. I have managed to get an IIF statement to work in another part of the same query but for some reason the same format won't work here.
This is the one that works:
GP%: IIf([SumOfCons Ex VAT]<>0,[SumOfGP Amount]/[SumOfCons Ex VAT],0)*100
So my (no doubt faulty) logic told me that this would work:
Days Stock: IIF([Day Stock]<>0,/[Closing @ Cost],0)
Where am I going wrong? As ever, your genius is appreciated..
Last edited: