Thank you Skip that helped clarify my thinking, my head was spinning around when I wrote the above.
I finality ended up with.
[Code]SELECT IIf(Sum(Abs(PM29='Yes'))<>0 And...
Since I just want the %change regardles of Sum(Abs(Y ='Yes'))>Sum(Abs(X ='Yes'))or Sum(Abs(Y ='Yes'))<Sum(Abs(X ='Yes')) the above needs to be
SELECT IIF( Sum(Abs(Y ='Yes'))<>0 and Sum(Abs(X = 'Yes'))<>0 AND Sum(Abs(Y ='Yes'))/Sum(Abs(X ='Yes'))<>1 ,IIF(Sum(Abs(Y='Yes'))>Sum(Abs(X='Yes'))...
Hello,
I have a table with two fields(text) X, Y, both have 20 entries of yes, no.
I am trying to find the percent change in them and am running into trouble if Sum(X='yes')=0 or Sum(Y='yes')=0 or Sum(X='yes')/Sum(Y='yes')=1.
I need
IF Sum(X)=0 and Sum(Y)=0 then %change=0
IF Sum(X)<>0 and...
Thank you both for your reply.
They are text fields not yes/no fields, I should have made that clear.
The table is not normalized it came from a survey that some else wrote and then handed off to me.
I have not used the IFF before, I will read up on it, also Sum(abs(PM11="yes")) is new, new...
Hello, first time here,I hope I am posting to the correct forum.
I have a table with say 10 columns C1,..,C2 with 20 entry's of yes or no each.
I am trying to subtract the COUNT(C2)-COUNT(C1)
I am trying
SELECT PM11, PM21, COUNT(PM21) - Count(PM11) AS Total
FROM tblFlash4
WHERE PM11='Yes'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.