Skip to main content

Notifications

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! 

  • yoselam Profile Picture
    10 on at
    RE: Fetch xml based SSRS report

    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.

  • David Jennaway Profile Picture
    14,065 on at
    RE: Fetch xml based SSRS report

    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
    RE: Fetch xml based SSRS report

    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

  • yoselam Profile Picture
    10 on at
    RE: Fetch xml based SSRS report

    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.

  • David Jennaway Profile Picture
    14,065 on at
    RE: Fetch xml based SSRS report

    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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans