Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Hardcode rows in a table

$
0
0

Greetings,

I am trying to figure out how to have a tablix that the rows are pre-defined, and just the sum of the values are displayed (or 0 if none present).  Essentially what a normal table would be with row groups, but for my known elements, there is a row for all elements, not just the ones in my dataset.  

To elaborate with a simple example...

Assuming I am having a table reporting on students favorite food.  The food options are: Apple, Orange, Chips, Candy Bar.  My data set could be:

  • Steve - Apple
  • Mikey - Orange
  • Joe - Apple
  • Sally - Chips

I am trying to have a table that looks like this:

  • Apple - 2
  • Chips - 1
  • Orange - 1
  • Candy Bar - 0

Just unclear on how to achieve this?  Since I know what my "rows" would be I would like to hardcode those and then filter the subset.   I am assuming I add rows to a table and then sum the field, but filter it?  I  just don't see where I would apply the filter?    

Thx,

Rob


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>