<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Page numbering for subreport thats independent of main report (Report Builder) in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Page-numbering-for-subreport-thats-independent-of-main-report/m-p/3597526#M32138</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using a subreport and want to use page numbering but I am only able to use the global page count which includes the count for every page of the report. The subreport needs to display its own page count in this format "Page X of Y".&lt;/P&gt;&lt;P&gt;If the main report has 10 pages and the subreport has 3 pages, the subreport 3 pages should show these respectively on each page "Page 1 of 3,&amp;nbsp;Page 2 of 3,&amp;nbsp;Page 3 of 3"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using this expression but it gets the total count of the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;="Page " &amp;amp; Globals!PageNumber &amp;amp; " of " &amp;amp; Globals!TotalPages&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 19:31:50 GMT</pubDate>
    <dc:creator>mng</dc:creator>
    <dc:date>2023-12-21T19:31:50Z</dc:date>
    <item>
      <title>Page numbering for subreport thats independent of main report (Report Builder)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Page-numbering-for-subreport-thats-independent-of-main-report/m-p/3597526#M32138</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using a subreport and want to use page numbering but I am only able to use the global page count which includes the count for every page of the report. The subreport needs to display its own page count in this format "Page X of Y".&lt;/P&gt;&lt;P&gt;If the main report has 10 pages and the subreport has 3 pages, the subreport 3 pages should show these respectively on each page "Page 1 of 3,&amp;nbsp;Page 2 of 3,&amp;nbsp;Page 3 of 3"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using this expression but it gets the total count of the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;="Page " &amp;amp; Globals!PageNumber &amp;amp; " of " &amp;amp; Globals!TotalPages&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 19:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Page-numbering-for-subreport-thats-independent-of-main-report/m-p/3597526#M32138</guid>
      <dc:creator>mng</dc:creator>
      <dc:date>2023-12-21T19:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Page numbering for subreport thats independent of main report (Report Builder)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Page-numbering-for-subreport-thats-independent-of-main-report/m-p/5232225#M43594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="473568" data-lia-user-login="mng" class="lia-mention lia-mention-user"&gt;mng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SSRS (and Power BI Report Server), the Globals!PageNumber and Globals!TotalPages always refer to the entire report, not just the subreport. That’s why you’re seeing the full count across all pages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;subreports don’t have their own independent page numbering context. They inherit the pagination from the parent report viewer. So there isn’t a built‑in way to reset page numbers inside a subreport.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Treat the subreport as a standalone report.&amp;nbsp;If you export or render the subreport separately, the page numbers will correctly show “Page X of Y.”&amp;nbsp;When embedded as a subreport, it loses that independence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also&amp;nbsp;Instead of embedding as a subreport, consider merging the content into the main report with grouping and page breaks. Then you can control page numbering per group using expressions like-&lt;/P&gt;&lt;P&gt;="Page " &amp;amp; RowNumber("GroupName") &amp;amp; " of " &amp;amp; CountRows("GroupName")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps you in your query.&lt;/P&gt;&lt;P&gt;If this reply helped, mark it as solutions and kudos would mean a lot!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 09:41:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Page-numbering-for-subreport-thats-independent-of-main-report/m-p/5232225#M43594</guid>
      <dc:creator>trivedisunita</dc:creator>
      <dc:date>2026-06-24T09:41:40Z</dc:date>
    </item>
  </channel>
</rss>

