Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
SyahmiCensof098
New Member

SSRS Two Datasets and one of them have page break between instance

Hello there. I am new to SSRS, but I am maintaining it in Microsoft Visual Studio Community 2022, along with the Microsoft RDLC Report Designer extension. I'm having some difficulty keeping two separate datasets on the same page. One dataset has traits that cause page breaks between groups, whereas the second dataset has no such properties. Both datasets contain separate SQL Server queries and cannot be joined. The second dataset has connections to the first dataset. I understand two datasets cannot coexist within same one tablix table. Allow me to break down.

 

The first dataset has a list of records for items along with all other facts about that item, whereas the second dataset contains a list of people who are responsible for each item in the first dataset. As a result, the records in the Second dataset can be assigned at random to an endless number of two or three people responsible for one item. That is why I am unable to combine two queries of them since if I do, one item may have three people responsible for it, resulting in duplicate things with distinct people in charge.

 

1. I tried using a rectangle with properties that keep the contents together if at all possible. I also experimented with different combinations, such as placing both tablix tables in the same rectangle, placing the first tablix table outside the rectangle with a page break between each group, and placing the second tablix table inside the rectangle, and many more. However, none of these combinations produced satisfactory results.

 

2. I experimented with tablix table attributes, including page break options and a variety of combinations, but the results were not satisfactory.

 

I realize that the header and footer can be repeated if numerous pages are produced, however the tablix table cannot be placed inside the header and footer, unfortunately.

 

What I'm attempting to accomplish is to display both datasets of tablix tables on the same page, even if one of the tablix tables has a page break between instance. For example, both dataset tablix table should display on each pages but only First dataset tablix table contains different values per pages while Second dataset tablix table shall have same values in each pages.

 

The current result is that if there are three items, the page break will be three pages with different items from the first dataset of the tablix table, but the second dataset of the tablix table will only display in the last item, which is on page three; if there are four items, the second dataset will display on the last page of the fourth item.

 

I look forward to hearing from you guys. Thank you!

2 REPLIES 2
Sahir_Maharaj
Super User
Super User

Hello @SyahmiCensof098,

 

Can you please try this approach:

  1. Place both datasets in separate tablix tables.
  2. Then, configure the page break properties to display the second dataset on every page (while the first dataset tablix continues to paginate through its items.)

I've found that sometimes, the preview doesn’t fully reflect the layout due to rendering limitations in SSRS. I'd recommend to test by exporting to PDF or another format to see the final layout.

 

Note: if items don’t align perfectly, I'd recommend adjusting the height of the rectangle and padding to control the spacing.

 

Hope this helps.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Hi @Sahir_Maharaj ,

 

Appreciate your respond on my post. Unfortunely the solution does not solve the problem. Let me brief why.

From your approach, 

  1. Place both datasets in separate tablix tables.
  2. Then, configure the page break properties to display the second dataset on every page (while the first dataset tablix continues to paginate through its items.)

 

1. Let's said i create four datasets and each dataset apply to four different tablix tables

if second tablix have keep together.png

2. Then I follow approach "configure the page break properties to display the second dataset on every page" as above and for Third and Forth tablix tables having same page break properties as Second tablix table.

if page break on one dataset tablix table.png

3. As approach "while the first dataset tablix continues to paginate through its items.", I have configure First dataset page break properties as shown above.

4. Let's said i have three different items which to be expected three differents pages produced.

first item of produced report.png

5. Result of produced report, First page for First item display the First tablix table only.

second item of produced report.png

6. Same goes for Second page for Second item.

third item of produced report.png

7. However, Third pages for Third item display all the tablix table suppose to.

 

What I want to achieve is that all four tablix tables in report should be on all three pages of those three items just the different values of First tablix table meanwhile all values in Second, Third and Forth tablix table shall remain same on all three pages as intend to be.

 

Once again, I appreciate you, @Sahir_Maharaj for approach recommendation. Unfortunely the approach does not solve the problems.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.