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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Group SSRS report multiple lines in one page

(0) ShareShare
ReportReport
Posted on by

hi all,

I just realized I was posting this to wrong forum. Re-posting to D365 Finance instead of Dynamics AX. 

I am new to SSRS report. Working on a Sales invoice report and encounter a problem where my Totals section will split into 2 pages if there isn't enough space to print all of them in one page.

I have tried to set the "Hidden" property using "=iif(Globals!PageNumber=Globals!TotalPages,false,true)", meaning to print those lines on the last page only, but compilation failed saying the global variables TotalPages and PageNumber can only be used in page header or footer.

Here's the SSRS layout. It is part of the Report Body.

pastedimage1631077948821v1.png

Here's the desired output: 

pastedimage1631077948821v2.png

How to avoid those 5 lines to print on separate pages. Sometimes it prints Sub total & Shipping in one page, and the rest on the following page.

thank you for reading this.

Fen

I have the same question (0)
  • Bhagyashree Dave Profile Picture
    133 on at

    If you're using a table in the design, you could try tick marking "Keep together on one page if possible" in page break options in tablix properties.

    Regards,

    Bhagyashree Dave

  • Community Member Profile Picture
    on at

    hi Bhagyashree,

    Thank you for your suggestion! Do you mean I should try adding a table and put all those lines in a table?

  • Verified answer
    Bhagyashree Dave Profile Picture
    133 on at

    Yes sure, you should try that.

    Just remember to remove the default group from the row of the table if you don't have repeating(multiple) data. By repeating data I meant line wise data.

    I think you should add these data in the existing table otherwise it will work the same. But again I'm not sure about it, just try both ways, try adding a new table and then try adding these data in the existing table. While you're adding it to existing table, add these data outside the group, I guess this will work fine.

    Regards,

    Bhagyashree Dave

  • Community Member Profile Picture
    on at

    hi Bhagyashree,

    What do you mean by removing default group? Please explain more, sorry I am really new to SSRS.

    I added a table, but it is repeating the content multiple times.

  • Verified answer
    Bhagyashree Dave Profile Picture
    133 on at

    Hi,

    By removing default group I meant, when you create a new table, It has a row group by default named "Details". So you must remove it before you add your data to that table. 

    pastedimage1631267205195v3.png

    But instead, I would suggest you to use existing table if you have it in the report. And add your data by adding row to that table (outside the group).

    pastedimage1631267139487v2.png

    Remember that you should delete this group only if you want to display header (one-time) data in the table. If you're displaying lines' data then you should keep it. But in this scenario, I guess you are trying to display header data.

    Regards,

    Bhagyashree Dave

  • Community Member Profile Picture
    on at

    hi Bhagyashree, your suggestion works really well! I mangaed to print all the totals in one page.

    Thanks so much for your help!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 91

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 72 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 69

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans