GKIL67
Technical User
- Dec 1, 2009
- 44
Hello all, do you know if there is a simple way to
eliminate/hide the empty cells in a crosstab query?
Kindly see the attached picture, I want to get from the original Display 1 to Display 2.
The column headings (1301, 1300, 1299...) is only an
increasing counter... maybe there is a way to "cheat" it
so that the relevant data numbers underneath are next to each other?
This is the code of the original Display 1:
Thank you in advance for any valuable feedback.
eliminate/hide the empty cells in a crosstab query?
Kindly see the attached picture, I want to get from the original Display 1 to Display 2.
The column headings (1301, 1300, 1299...) is only an
increasing counter... maybe there is a way to "cheat" it
so that the relevant data numbers underneath are next to each other?
This is the code of the original Display 1:
Code:
TRANSFORM First(skipPat45Rows.SKIPS) AS FirstOfSKIPS
SELECT [5&20].FIVE, Count(skipPat45Rows.SKIPS) AS TotalSKIPS
FROM [5&20] LEFT JOIN skipPat45Rows ON [5&20].FIVE = skipPat45Rows.BALL
GROUP BY [5&20].FIVE
ORDER BY [5&20].FIVE, skipPat45Rows.DrawNo DESC
PIVOT skipPat45Rows.DrawNo;
Thank you in advance for any valuable feedback.