I am trying to build an expression using the IIF function in a simple query to calculate only if the IIF function = true.
For example, IIF([Business]="AeroTM",([Total EE]/[Total Dept]),"")
This views me 2 rows of returned data, 1 row will consist of the calculated value and the next row shows the business again, but shows everything else blank (below is what i see in the datasheet view):
Business EE/Dept
AeroTM
AeroTM 42
I know this is because in the IIF function, I have said to return "" if the business does not match. Is there a way I can prevent the blank row from happening by either rewriting the IFF function or by doing something else?
I am new to Access so really only know how to write simple queries.