gsgriffin
Technical User
- Oct 17, 2002
- 27
Rather than trying to use words, below is an example of my problem.
Query 1 Results:
Column 1 Column 2 Column 3 Column 4
====================================================
a 15 c 10 a 25 b 10
c 5 null null b 15 null null
null null b 15 c 5 a 15
a 10 null null null null null null
Each variable above (letter) corresponds with the cell after it that has a number. I want to sum each variable for each value in every column and row. I perform queries that group and sum by columns producing
Column 1 Query:
a 25
b null
c 5
Column 2 Query:
a null
c 10
b 15
Column 3 Query:
a 25
b 15
c 5
I would now like to reduce my results down to the the sum of all of these to have
Total Query
a 50
b 30
c 10
My result is obviously
a null
b null
c 10
The problem comes that when I add together the queries, if there are null values, the sum is null. Is there any way to have a query substitue a zero value if a null is found or am I going about this the wrong way?
Query 1 Results:
Column 1 Column 2 Column 3 Column 4
====================================================
a 15 c 10 a 25 b 10
c 5 null null b 15 null null
null null b 15 c 5 a 15
a 10 null null null null null null
Each variable above (letter) corresponds with the cell after it that has a number. I want to sum each variable for each value in every column and row. I perform queries that group and sum by columns producing
Column 1 Query:
a 25
b null
c 5
Column 2 Query:
a null
c 10
b 15
Column 3 Query:
a 25
b 15
c 5
I would now like to reduce my results down to the the sum of all of these to have
Total Query
a 50
b 30
c 10
My result is obviously
a null
b null
c 10
The problem comes that when I add together the queries, if there are null values, the sum is null. Is there any way to have a query substitue a zero value if a null is found or am I going about this the wrong way?