Missing Cells in a Matrix - SQL Server 2005

  • See the sample report in Excel and note the White space for Categories 2 & 3 where no data is available.

    Cells in a matrix I created are not always populated for every year and category combination (Year is the X axis Category is the Y axis)

    when the query is run. Is there a way to populate missing matrix cells with zero and, most importantly, when calculating %'s

    (of row and/or column) to prevent the "NaN" result of division by zero.

    Right now I am populating a "zero table" in the SQL which seems like a hookie way of doing things.

    Many thanks in advance.

  • you can use expressions instead of the column... basically replacing the column with ISNULL and IF ELSE Expression

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply