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 :
Customer experience | Sales, Customer Insights,...
Unanswered

Fetch xml based SSRS report

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

I have a requirement to show child records of a parent record on a footer of fetch based SSRS report .

The parent record will be  part of the main report body. The problem I have is i can't add table on a footer of a any SSRS report as you know.

Is there any way I can achieve this in fetch based SSRS report? any custom code (can I use plugin perhaps ) any tip is much appreciated! 

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    One option would be to display the data in a text box in the footer. The textbox could display a concatenated string of values from the child entities. You can use a combination of the JOIN and LOOKUPSET functions to build the concatenated string

  • yoselam Profile Picture
    10 on at

    That is just going to give me the first child record, but what i want is all the associated child records. If I put in in a text box it only  takes the dataset's first element (see pic below)

    pastedimage1572623937001v1.png

    One parent record have multiple child records associated to it, and wanted to display each child records selected columns, separated by new line in a footer. 

    so if I have a parent record with two child record, i wanted to get the name of the two child records (one line for each name) on a footer.

  • yoselam Profile Picture
    10 on at

    Hi David,

    Thanks for your feedback, the problem of using text box is limited to a dataset and is returning me the first child record. i.e i wanted to show all child record associated to that parent record. If I use your method I can only pull the first element of the child record. what i needed is the name of all the child records speared in a new line on the footer for every paret record on each page.Right now all I can get is the first child's name on the dataset (see screenshot below of what I am seeing after I put a textbox in a footer and trying to access report child record's name . Please let me know any tips.

    pastedimage1572624687491v1.png

  • David Jennaway Profile Picture
    14,065 on at

    You'll want an expression that looks something like:

    =JOIN(LOOKUPSET(Fields!ParentField.Value,Fields!ChildLookupField.Value,Fields!ChildDisplayField.Value,"ChildDataSetName"),vbCrLf)

    Where Fields!ParentField.Value is the identifier of the parent, Fields!ChildLookupField.Value is the lookup field on the child, and Fields!ChildDisplayField.Value is the field that has the text that you want to display

  • yoselam Profile Picture
    10 on at

    Thank you so much David!

    Do I need to have a separate dataset for parent and child records?, fetch xml allows me to query them together and right now i have both on same dataset.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans