Hi All,
I just joined the forum as I'm going to be using quite a lot of new queries over the next few months, but I've become a bit stuck so hopefully someone can point me in the right direction.
I want to count each row only if it is not null. So basically i want to end up with a calculated column that shows me what % of the target other columns are complete (not null).
Unique Order NumberColourPaper SizeCost% Complete1RedA4
75%
2BlueA32.75100%
A23.0050%4
25%
I've tried using the count function and still can't manage to get it right. This is the latest attempt to simply count the non-null values (in the expression builder):
Expr1: Sum(IIf(IsNull([table1]![UniqueOrderNumber]),0,1)+IIf(IsNull([table1]![Colour]),0,1)+IIf(IsNull([table1]![PaperSize]),0,1)+IIf(IsNull([table1]![Cost]),0,1))
Any help would be greatly appreciated.
David
I just joined the forum as I'm going to be using quite a lot of new queries over the next few months, but I've become a bit stuck so hopefully someone can point me in the right direction.
I want to count each row only if it is not null. So basically i want to end up with a calculated column that shows me what % of the target other columns are complete (not null).
Unique Order NumberColourPaper SizeCost% Complete1RedA4
75%
2BlueA32.75100%
A23.0050%4
25%
I've tried using the count function and still can't manage to get it right. This is the latest attempt to simply count the non-null values (in the expression builder):
Expr1: Sum(IIf(IsNull([table1]![UniqueOrderNumber]),0,1)+IIf(IsNull([table1]![Colour]),0,1)+IIf(IsNull([table1]![PaperSize]),0,1)+IIf(IsNull([table1]![Cost]),0,1))
Any help would be greatly appreciated.
David