<?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 Paginated Reports Expressions with parameters in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Paginated-Reports-Expressions-with-parameters/m-p/4004316#M35462</link>
    <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a paginated reports and I have 2 questions regarding the report builder:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are you using a Power BI connection in your work? If so, have you encountered any challenges when using measures from your Power BI model in your paginated report? How did you resolve them?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Currently, I'm working with expressions in my report, and I'm facing an issue with one of them. I'm using the CalendarWeek parameter, and I need to calculate the variation between the selected week and the week five periods before it, as shown in the second image. However, the expression I'm using to calculate the total sum for the previous period is resulting in a blank value.&lt;P&gt;&lt;I&gt;=sum(iif(Fields!Year.Value=TODAY.Year AND Fields!CalendarWeek.Value=Parameters!WeeklyVolumeDataCalendarWeek.Value(0)-1,&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;I&gt;Fields!Total_Volume.Value,Nothing))&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;I&gt;&lt;img /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;I&gt;&lt;I&gt;&lt;I&gt;&amp;nbsp;&lt;img /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Fri, 21 Jun 2024 15:02:50 GMT</pubDate>
    <dc:creator>amgarav</dc:creator>
    <dc:date>2024-06-21T15:02:50Z</dc:date>
    <item>
      <title>Paginated Reports Expressions with parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Paginated-Reports-Expressions-with-parameters/m-p/4004316#M35462</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a paginated reports and I have 2 questions regarding the report builder:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are you using a Power BI connection in your work? If so, have you encountered any challenges when using measures from your Power BI model in your paginated report? How did you resolve them?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Currently, I'm working with expressions in my report, and I'm facing an issue with one of them. I'm using the CalendarWeek parameter, and I need to calculate the variation between the selected week and the week five periods before it, as shown in the second image. However, the expression I'm using to calculate the total sum for the previous period is resulting in a blank value.&lt;P&gt;&lt;I&gt;=sum(iif(Fields!Year.Value=TODAY.Year AND Fields!CalendarWeek.Value=Parameters!WeeklyVolumeDataCalendarWeek.Value(0)-1,&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;I&gt;Fields!Total_Volume.Value,Nothing))&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;I&gt;&lt;img /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;I&gt;&lt;I&gt;&lt;I&gt;&amp;nbsp;&lt;img /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 21 Jun 2024 15:02:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Paginated-Reports-Expressions-with-parameters/m-p/4004316#M35462</guid>
      <dc:creator>amgarav</dc:creator>
      <dc:date>2024-06-21T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Paginated Reports Expressions with parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Paginated-Reports-Expressions-with-parameters/m-p/4006362#M35554</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="748432" data-lia-user-login="amgarav" class="lia-mention lia-mention-user"&gt;amgarav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using Power BI datasets in paginated reports, it's important to understand that paginated reports don't directly support DAX measures in Power BI models. Instead, you'll need to use SQL queries or expressions to recreate the logic for these measures in a paginated report. This may involve getting the raw data through a query and then applying the necessary calculations in the report itself. For more information about connecting to Power BI datasets and limitations, you can check the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-data-sources" target="_blank"&gt;Supported data sources for Power BI paginated reports - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regarding your expression issues, it seems likely that there may be spelling mistakes or logical errors in your expressions, especially in the way you handle day and week calculations. The corrected expression might look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Sum(IIf(Fields!Year.Value = Year(Today()) AND Fields!CalendarWeek.Value = Parameters!WeeklyVolumeDataCalendarWeek.Value - 5, Fields!Total_Volume.Value, Nothing))&lt;/LI-CODE&gt;
&lt;P&gt;Make sure your dataset contains the necessary data for the number of weeks you're trying to compare. If the dataset doesn't have data for the "first five periods" week, the result is indeed empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A title="https://community.powerbi.com/t5/community-blog/how-to-get-your-question-answered-quickly/ba-p/38490" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yohua%40microsoft.com%7Ce1106bfabecb4734a5cc08dc2305bc51%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638423754744679080%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=24%2BceC5sFd3n3%2FhFDYILWFcNjCwVClBD%2BPBsSLVfJGk%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yongkang Hua&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 07:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Paginated-Reports-Expressions-with-parameters/m-p/4006362#M35554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T07:17:22Z</dc:date>
    </item>
  </channel>
</rss>

