Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

SSRS grouping multiple data sets

Posted on by 280

Hi all

Running AX 2012 R3 CU9.

Running an SSRS report which currently deals with multiple data sets in one report. (Works orders, Bill of materials, routes and one other.) Currently it is using an RDP class to achieve this. It works fine when you input a works order ID, and it prints all the information from those data sets solely about that works order.

However, there is now a need for the report to take multiple works orders in its query parameters and group them with page breaks. I am not sure how to do this as there is several tables on the report, all with technically unlinked data sets. How would I detect where the page break is supposed to go? How do I group by ProdTable.ProdId on all the associated tables at once?

I was looking into SSRS "lists" to cover this requirement, but it looks like lists are for having multiple standalone objects that all use the same dataset?

I also looked into building a query which would gather all the data, but SalesLine > BomTable and SalesLine > ProdRoute are both 1:many joins, and it would result in a lot of duplicate data to be filtered out - especially if it's being run on several production orders at once.

Is there a way to efficiently tell my report to group by this field, even when the report has multiple data sets?

Thanks very much in advance,

Luke

  • lukbel Profile Picture
    lukbel 280 on at
    RE: SSRS grouping multiple data sets

    Hi all

    I know how to group when it's one data set.  My problem is I have multiple data sets, each one containing its own table.

    So there are three tables on the form - which are not technically joined together. However, they all have ProdId or a field which can be used to find the ProdId.

    My question is how can I set my VS report to group/page break in THIS instance. Since there is not a consistent table that will end lowest on the page (one table might have more records than the other) I don't know which table to put the page break on, or how to keep them together. Also how would I group on these three tables so it changes over to new ProdId on all three tables at once?

    As I said above, I considered making it one dataset but because (ProdTable>BOMTable) and (ProdTable>ProdRoute) are both 1:many, this will result in many duplicate records, and the report having to filter them all out

    Any help would be much appreciated

    Thanks

    Luke

  • Suggested answer
    Srini Ramidi Profile Picture
    Srini Ramidi 2 on at
    RE: SSRS grouping multiple data sets

    Hello,

    YES you can add new group by  ProdId. In Visual Studio, locate the tablix(table), depending on existing groups add a child or parent group  based on ProdID.   Open the group properties window of newly created group and set the page breaks "Between each instance of a group".      

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,349 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,212 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans