Solved

TOP 10 by GROUP with Tablix in SSRS????

Posted on 2010-08-17
3
2,583 Views
Last Modified: 2012-05-10
I need to display my data in a Tablix in SSRS and Group the data  so that each Group is separated and then shows the TOP 10 (Z-A) based on a Summary Amt.

Please help me understand how to setup the Report Group and how to acheive this in SSRS.

Thanks
M
0
Comment
Question by:MIKE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 16

Expert Comment

by:vdr1620
ID: 33460168
You can start with the links below

http://www.mssqltips.com/tip.asp?tip=1329
http://www.simple-talk.com/sql/reporting-services/beginning-sql-server-2005-reporting-services-part-1/
http://msdn.microsoft.com/en-us/library/ms170246(SQL.90).aspx

If you want them to be displayed in Desc Order you do that in your SQL query by using

ORDER BY ColumnName Desc..
0
 
LVL 19

Expert Comment

by:Bhavesh Shah
ID: 33461870
Hi,

As you assigned SQL SERVER 2008 Zone so I'm giving u sample query,if u require.

I had created dummy table "Master"
with two columns.
UserType And ShortName.

U just create table and copied dummy data into table.
SELECT TOP 100 a.usertype,a.shortname,row_no
FROM dbo.Master a
INNER JOIN (SELECT usertype,shortname,ROW_NUMBER() OVER(PARTITION BY userType ORDER BY shortname DESC) AS 'Row_No' FROM dbo.Master) B ON
a.shortname=B.shortname
AND b.row_no<=10
ORDER BY a.userType,a.shortName

Open in new window

testData.xlsx
0
 
LVL 10

Accepted Solution

by:
itcouple earned 500 total points
ID: 33469565
Hi

If you have a group in SSRS. Go to properties of the group where you want to show 10 items (details?) and add filter use operator TOP N (remember to use expreesion for value =10, 10 on it's own won't work)

If you have very big dataset Brichsoft solution might give you better performance.

Regards
Emil
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question