SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Report Design query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cidr
Posting Yak Master

United Kingdom
203 Posts

Posted - 04/08/2013 :  05:14:18  Show Profile  Reply with Quote
Hi All,
I have a particular requirement that is making the design of a report prove difficult.

An example of the data set is like this. (I've obviously simplified the dataset and record names for brevity)


ParentItem Childitem
Parent1     Child1
parent1     Child2
parent1     Child3
Parent2     Child1
Parent2     Child2
Parent2     Child3
Parent2     Child4
Parent2     Child5


What I need is the ParentItem on its own page of the report. Then I need to find a way of having the Childitems below it in 5 blocks in a row on the report (or inside rectangles). If the Parent item had 10 Child items, there would be 2 rows of 5 blocks, each block having the name of the ChildItem. However, there can be more or less ChildItems so I'd need to have only the same amount of blocks as there are ChildItems.

I've tried using a List object but I'm not able to get this working. I've attached an image of the design I'd be looking for.
Does anyone know if there's a way to do this?
Many thanks for any help in advance.




Edited by - cidr on 04/08/2013 05:14:52

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 04/09/2013 :  01:12:55  Show Profile  Reply with Quote
Add matrix as container
Group on ParentField. Select put a pagebreak after in grouping properties.

for getting child in columns add a rownumber field to the dataset.
then add a grouping on ((RowNumber-1)/5) as rowgroup
and for column group add expression as rowNumber ((RowNumber-1)Mod 5)

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

cidr
Posting Yak Master

United Kingdom
203 Posts

Posted - 04/10/2013 :  06:56:51  Show Profile  Reply with Quote
quote:

Visakh 09/04/2013
Group on ParentField. Select put a pagebreak after in grouping properties.

for getting child in columns add a rownumber field to the dataset.
then add a grouping on ((RowNumber-1)/5) as rowgroup
and for column group add expression as rowNumber ((RowNumber-1)Mod 5)



That's a convenient way of doing it. Before I seen your post, I used 5 list containers with a text box in each. For each of the Containers filters I used the IN operator and specified the Row numbers to pull the respective fields. There would never be more than 50 ChildItems so this seems to have worked.

I'll be keeping your technique for future reports with this design.

Thanks :)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 04/10/2013 :  07:09:13  Show Profile  Reply with Quote
you're welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000