February 13, 2013 at 4:31 am
Hello,
I have a Dataset with: Company, Depot, Account, Year Period, Ethical, Glaxo, Drug, Surgical, General, PI, Misc, Phone, PostCode, CustomerName, DepotName, SalesMan, Salesman Number, Drug, General, Status.
I have used Visual Studio to create a report. In design view i have created two tables.The first table contains:
Account, CustomerName, Phone, DepotName, SalesMan, Salesman Number, Depot, PostCode.
I have created a second table above using the fields: Account, CustomerName, DepotName, SalesMan, Salesman Number, Depot, PostCode.
So in essense when the report is run the Account details will be shown first and then the Sales Details will be shown below.
What is happening when i run the report is that the Account Details in the first table are appearing multiple times as opposed to only once.
I assume this is due to the number of periods and year in the Sales fields.
Can anyone suggest a solution to enable me to view the Account details per Sales in a report.
February 13, 2013 at 4:35 am
Please provide the current report along with what the report should look like,
But it sounds me that you need to add some grouping, but cannot be sure without seeing what you have now and what you want it to actually look like.
February 13, 2013 at 5:03 am
The report is supposed to look like:
Account1, Account, Custome, Phone, PostCode, Group, Status, Depot, SalesMan, Salesman Number
Account, Year, Period, Ethical, Glaxo, Drug, Generic, Surgical, General, PI, Misc, Specials.
The second line works correctly. I have Grouped on Account and created a page break so that you can see the Account sales on One Page.
February 13, 2013 at 6:29 am
Need data or pictures of what it looks like now and what it should look like after.
February 13, 2013 at 6:43 am
Hi
The report is supposed to look as the image attached.
Regards
February 13, 2013 at 6:51 am
Yes I get that, but what does it look like now when you run the report, and what is wrong with it so I know what I need to do to make it your required output.
February 13, 2013 at 7:10 am
Hello,
As i mentioned i would like the Account Details to show in the first table and in the second table the sales data.
So in image (first.png) the Account details for one Account should be displayed. When you run the report, If you click the next page button you see the same customer details 10 times. (The same account details per page). This happens with each account.
When you get to a certain page e.g. 7000, you then begin to see the start of the Account Sales (two.png).
I need the corresponding Account to show with the sales details on the same page.
Thanks
February 14, 2013 at 4:12 am
Anyone any ideas on a solution to this?
Thanks
February 15, 2013 at 5:45 am
As Anthony.Green mentioned, it sounds like you need to be grouping your data in the first table. Without seeing a sample dataset it's difficult to provide info on what to group by -- I'd be guessing if I simply said group by Account...
--Pete
February 15, 2013 at 6:20 am
Send a screenshot of the grouping section for each table so we have a better understanding of what that looks like.
February 15, 2013 at 7:18 am
Hello,
I have attached some images to show what the pages and when the pages are run.
What I have done so far is right clicked on Account...then Add Group>Row Group>Parent Group.
Then...Group By Account. A new column called Accoun 1 has now been created.
When i run the report i get the results of screenshot One.png which is All of the Accounts related to each of the sales.
So in F2123 Account is related to F2123 sales.
If you look at screenshot2.png it shows the end of the Account details...then the start of the Account Sales.
The sales start with account F2123..and then go on to the next Account Sales.
I want the report to show
The Account Details for One Account.
Then the Account Sales....for One related Account
Thanks
February 15, 2013 at 1:08 pm
I think you're striving for a master-detail report style: Here's an idea
Try using a list data region, grouping by Account, and add your two tables within the list region. Here's a link that illustrates the technique:
http://jesborland.wordpress.com/2010/11/17/the-power-of-reporting-services-–-lists/
Also, here's a link to nesting data regions in SSRS:
http://msdn.microsoft.com/en-us/library/cc627449(v=sql.100).aspx
Lastly, one other link that might help:
http://technet.microsoft.com/en-us/library/dd239330(v=sql.105).aspx
February 21, 2013 at 4:03 am
Report is fixed and working. Thanks for your help peterzeke.
Regards
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply