Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Reporting with advanced data manipulation

Posted on by

Hi, I have a requirement where the Dynamics 365 data needs to be manipulated in various ways before it can be displayed in an SSRS report and would appreciate any advise on how best to achieve this requirement.

The Dynamics 365 data is structured very different to what is needed in the report and the report structure cannot be achieved using FetchXML queries alone.

Initially I was hoping that I could retrieve the data using FetchXML queries and then within SSRS I would have the ability to populate a final dataset by executing custom logic to interpret the source data based on the business requirements, however I haven't been able to find capabilities in SSRS that would support this. For my requirement I do know the columns for the final dataset at design time which could simplify this a bit, I'm mainly lost on populating the final dataset based on information in the other datasets.

If that is not possible within SSRS, my next plan is to write a plugin in Dynamics 365 that will perform the data manipulation and save the results to a custom entity that can be used with FetchXML in SSRS. Can anyone recommend a better solution? Also I would ideally want this data manipulation to be done just before the SSRS report is run by the user, is it possible to setup some sort of dependency so that the report will always show the latest data without me having to schedule the data manipulation periodically or run it on every record change?

This is for the cloud hosted version of Dynamics 365 for sales, so no on-prem solutions or direct access to the database unfortunately.

Thanks in advance!

  • RE: Reporting with advanced data manipulation

    Hi Tyler, thanks for the feedback. Unfortunately the data manipulation I need is more on a dataset level. As a simplified example, I will have a single source row that includes a "Start Date", "End Date" and "Value". On my report I need to display a row for each month between the "Start Date" and "End Date" with the "Value" evenly distributed between each row.

  • RE: Reporting with advanced data manipulation

    Thanks Andrew that sounds like a promising alternative, I'll give it a try next week to see how well it fits in with our overall solution.

  • Suggested answer
    TylerS.Dev Profile Picture
    TylerS.Dev 725 on at
    RE: Reporting with advanced data manipulation

    Not sure what kind of manipulation you need but SSRS does have data manipulation to a certain degree, for example, lets say you want to add a custom text field based on a field call grade, 100-90 gives letter A, 89-80 gives letter B, etc.. You can right click your dataset, go to dataset properties, fields, and add a new calculated field logic using VBA script.

    You can also do grouping, extra filter, within matrix.

    Can you give a little more detail about the manipulation that you need?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Reporting with advanced data manipulation

    Hello,

    When we had that kind of scenarios we replicated our data to SQL Azure DB using Data Export Service - blogs.msdn.microsoft.com/.../introduction-to-dynamics-365-data-export-service

    With separated DB you're not limited to queries you can build.

    Good luck!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans