K
kevcar40
Hi
i have a crosstab query that takes values from 2 tables
table one weekly prod scores (entered weekly)
table two takes scrap numbers (entered daily)
the values are divided to create a percentage loss
using
1per:Sum((rejectreason_baseweeklysum.sumof1/
[rejectreason_baseweeklysum Query].wk1))
problem is when the scrap is entered the formula returns 100% because
there is no prod figure
i would like to use an iif statement to check if result is 100% if it
is make it null
ie
1per:iif(Sum((rejectreason_baseweeklysum.sumof1/
[rejectreason_baseweeklysum Query].wk1))= 100, "",
1per:Sum((rejectreason_baseweeklysum.sumof1/
[rejectreason_baseweeklysum Query].wk1))))
is this the correct thing to do
and is my syntax correct
thanks
kevin
i have a crosstab query that takes values from 2 tables
table one weekly prod scores (entered weekly)
table two takes scrap numbers (entered daily)
the values are divided to create a percentage loss
using
1per:Sum((rejectreason_baseweeklysum.sumof1/
[rejectreason_baseweeklysum Query].wk1))
problem is when the scrap is entered the formula returns 100% because
there is no prod figure
i would like to use an iif statement to check if result is 100% if it
is make it null
ie
1per:iif(Sum((rejectreason_baseweeklysum.sumof1/
[rejectreason_baseweeklysum Query].wk1))= 100, "",
1per:Sum((rejectreason_baseweeklysum.sumof1/
[rejectreason_baseweeklysum Query].wk1))))
is this the correct thing to do
and is my syntax correct
thanks
kevin