web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamics Chronicles / Grouping in SSRS D365 reports

Grouping in SSRS D365 reports

Dynamics Chronicles Profile Picture Dynamics Chronicles 958
Grouping in SSRS D365 reports Mattias Liloia Mon, 03/01/2021 - 17:17
Body

Grouping in SSRS D365 reports :

While implementing a FetchXml based SSRS report, there are basically two ways of grouping data:

Server-side: Grouping can be applied by using FetchXml aggregation. To add grouping to your existing FetchXml query, execute these steps:

  1. Inside your fetch query, set the aggregate attribute to true.
  2. Set the attribute to groupby to true. Many attributes are allowed for grouping.
  3. Set the attributes to aggregate to true. Many attributes are allowed for aggregation.
  4. Remove all other attributes from the query, which have neither grouping nor aggregation applied to create a valid query.

Example:

 
    
       
       
       
      
      
      
      
      
          
      
    

Next, enter your FetchXml query in your SSRS report's dataset and display the result in a Tablix format.

Client-side: Grouping can be applied during the report render process (actually on the SSRS server). In this case, keep your FetchXml without grouping clause and use Microsoft Visual Basic Expressions to aggregate data:

  1. Enter you FetchXml query (without grouping) in your SSRS report's dataset and add a Tablix control to your report.
  2. Find Row Groups and Column Groups.
  3. In order to add a column group, right-click the Column Group and select Group Properties...
  4. Select the Group expression (fx) and enter an expression.

Example:

=MonthName(Month(Fields!scheduledend.Value), true)

ReportGroup

 

Conclusion: Using server-side grouping, your report will execute slightly faster, because there is less logic to be processed during report generation. On the other hand, with client-side grouping you get more options by using Microsoft Visual Basic Expressions to aggregate data.

Grouping in SSRS D365 reports


This was originally posted here.

Comments

*This post is locked for comments