Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Simple Tablix Group


Simple Tablix Group

Author
Message
mitzyturbo
mitzyturbo
SSC-Enthusiastic
SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)

Group: General Forum Members
Points: 109 Visits: 577
Hi guys,

Hope someone can help a very simple question. I'm trying to build a table with a simple total of amounts per year e.g.
2010 2011 2012
Count(ID) Count(ID) Count(ID)

The query underneath is just doing a basic select of a number of fields off a table, no grouping or aggregation of any kind.

The way I initially tried to do this was create a column group of year, with a count wrapped around each ID. I thought that it would group the count per the column group but this was not the case. Instead it performed a count of 1 as in 1 instance of each ID.

As a work around I simply added a total underneath the ID (Details) column which performed the count per year correctly, however I had to make the details row invisible in order to get it to appear correctly.

I know that it might be easier to perform the aggregation in the actual query or perhaps to use the matrix (although I don't want a row grouping) but if someone can direct me if I'm just missing something with tablix grouping it would be appreciated.

Thanks
Ray M
Ray M
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1491 Visits: 1076
A tablix is going to display 1 row for each row in the dataset unless you create a row group.
That's all there is to it.

Your probably getting some cool display like
2009 2010 2011 2012 2013
1
1
1
1
1
1 1 1 1 1

You can cheat and hide the detail row and Simply just display the total row.

But usually in this scenario there would be some requirement to group the "Sales by Year" etc.

Your assumption to perform the aggregates in the dataset is correct. the more rows you send to the report server the slower the rendering will be.
mitzyturbo
mitzyturbo
SSC-Enthusiastic
SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)

Group: General Forum Members
Points: 109 Visits: 577
Thought as much, thanks for the reply mate
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search