<?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 DAX Into a Paginated Report in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Into-a-Paginated-Report/m-p/2940304#M97087</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to get some of my Power BI Desktop files into a Paginated Power BI Report Builder file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used my Power BI service Dataset Connection along with the Performance Analyzer DAX method from the Desktop and inserted into Query designer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can add a DAX statement in that adds a Parameter to the report based on " 'data TOSAIncident'[Correct date]&lt;/P&gt;&lt;P&gt;In the orginal desktop file I am using a slicer to filter so there is no actual parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the DAX Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;BR /&gt;VAR __DS0FilterTable =&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(VALUES('data ControllerLog'[Nature Of Call])),&lt;BR /&gt;NOT(ISBLANK('data ControllerLog'[Nature Of Call]))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0Core =&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;'data TOSAIncident'[Reported By],&lt;BR /&gt;'data ControllerLog'[Nature Of Call],&lt;BR /&gt;'data ControllerLog'[Action Taken],&lt;BR /&gt;'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;'def TrolleySegments'[Segment Name],&lt;BR /&gt;'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;'data TOSAIncident'[Correct date],&lt;BR /&gt;__DS0FilterTable,&lt;BR /&gt;"Color_Code", IGNORE('def TrolleySegments'[Color Code]),&lt;BR /&gt;"CountRowsdata_TOSAIncident", CALCULATE(COUNTROWS('data TOSAIncident')),&lt;BR /&gt;"CountRowsdata_ControllerLog", CALCULATE(COUNTROWS('data ControllerLog'))&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;NOT(ISBLANK('data TOSAIncident'[Reported By])),&lt;BR /&gt;NOT(ISBLANK('data ControllerLog'[Nature Of Call]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('data ControllerLog'[Action Taken]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('data TOSAIncident'[Occurrence Time Stamp]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('def TrolleySegments'[Segment Name]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('v_CombinedLocationSegments'[Location Description]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('data TOSAIncident'[Correct date]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"'data TOSAIncident'[Reported By]", 'data TOSAIncident'[Reported By],&lt;BR /&gt;"'data ControllerLog'[Nature Of Call]", 'data ControllerLog'[Nature Of Call],&lt;BR /&gt;"'data ControllerLog'[Action Taken]", 'data ControllerLog'[Action Taken],&lt;BR /&gt;"'data TOSAIncident'[Occurrence Time Stamp]", 'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;"'def TrolleySegments'[Segment Name]", 'def TrolleySegments'[Segment Name],&lt;BR /&gt;"'v_CombinedLocationSegments'[Location Description]", 'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;"'data TOSAIncident'[Correct date]", 'data TOSAIncident'[Correct date],&lt;BR /&gt;"Color_Code", [Color_Code]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0PrimaryWindowed =&lt;BR /&gt;TOPN(&lt;BR /&gt;501,&lt;BR /&gt;__DS0Core,&lt;BR /&gt;'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;1,&lt;BR /&gt;'data TOSAIncident'[Reported By],&lt;BR /&gt;1,&lt;BR /&gt;'data ControllerLog'[Nature Of Call],&lt;BR /&gt;1,&lt;BR /&gt;'data ControllerLog'[Action Taken],&lt;BR /&gt;1,&lt;BR /&gt;'def TrolleySegments'[Segment Name],&lt;BR /&gt;1,&lt;BR /&gt;'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;1,&lt;BR /&gt;'data TOSAIncident'[Correct date],&lt;BR /&gt;1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;EVALUATE&lt;BR /&gt;__DS0PrimaryWindowed&lt;/P&gt;&lt;P&gt;ORDER BY&lt;BR /&gt;'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;'data TOSAIncident'[Reported By],&lt;BR /&gt;'data ControllerLog'[Nature Of Call],&lt;BR /&gt;'data ControllerLog'[Action Taken],&lt;BR /&gt;'def TrolleySegments'[Segment Name],&lt;BR /&gt;'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;'data TOSAIncident'[Correct date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 22:26:48 GMT</pubDate>
    <dc:creator>amandabus21</dc:creator>
    <dc:date>2022-11-30T22:26:48Z</dc:date>
    <item>
      <title>DAX Into a Paginated Report</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Into-a-Paginated-Report/m-p/2940304#M97087</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to get some of my Power BI Desktop files into a Paginated Power BI Report Builder file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used my Power BI service Dataset Connection along with the Performance Analyzer DAX method from the Desktop and inserted into Query designer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can add a DAX statement in that adds a Parameter to the report based on " 'data TOSAIncident'[Correct date]&lt;/P&gt;&lt;P&gt;In the orginal desktop file I am using a slicer to filter so there is no actual parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the DAX Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;BR /&gt;VAR __DS0FilterTable =&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(VALUES('data ControllerLog'[Nature Of Call])),&lt;BR /&gt;NOT(ISBLANK('data ControllerLog'[Nature Of Call]))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0Core =&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;'data TOSAIncident'[Reported By],&lt;BR /&gt;'data ControllerLog'[Nature Of Call],&lt;BR /&gt;'data ControllerLog'[Action Taken],&lt;BR /&gt;'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;'def TrolleySegments'[Segment Name],&lt;BR /&gt;'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;'data TOSAIncident'[Correct date],&lt;BR /&gt;__DS0FilterTable,&lt;BR /&gt;"Color_Code", IGNORE('def TrolleySegments'[Color Code]),&lt;BR /&gt;"CountRowsdata_TOSAIncident", CALCULATE(COUNTROWS('data TOSAIncident')),&lt;BR /&gt;"CountRowsdata_ControllerLog", CALCULATE(COUNTROWS('data ControllerLog'))&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;NOT(ISBLANK('data TOSAIncident'[Reported By])),&lt;BR /&gt;NOT(ISBLANK('data ControllerLog'[Nature Of Call]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('data ControllerLog'[Action Taken]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('data TOSAIncident'[Occurrence Time Stamp]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('def TrolleySegments'[Segment Name]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('v_CombinedLocationSegments'[Location Description]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('data TOSAIncident'[Correct date]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"'data TOSAIncident'[Reported By]", 'data TOSAIncident'[Reported By],&lt;BR /&gt;"'data ControllerLog'[Nature Of Call]", 'data ControllerLog'[Nature Of Call],&lt;BR /&gt;"'data ControllerLog'[Action Taken]", 'data ControllerLog'[Action Taken],&lt;BR /&gt;"'data TOSAIncident'[Occurrence Time Stamp]", 'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;"'def TrolleySegments'[Segment Name]", 'def TrolleySegments'[Segment Name],&lt;BR /&gt;"'v_CombinedLocationSegments'[Location Description]", 'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;"'data TOSAIncident'[Correct date]", 'data TOSAIncident'[Correct date],&lt;BR /&gt;"Color_Code", [Color_Code]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0PrimaryWindowed =&lt;BR /&gt;TOPN(&lt;BR /&gt;501,&lt;BR /&gt;__DS0Core,&lt;BR /&gt;'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;1,&lt;BR /&gt;'data TOSAIncident'[Reported By],&lt;BR /&gt;1,&lt;BR /&gt;'data ControllerLog'[Nature Of Call],&lt;BR /&gt;1,&lt;BR /&gt;'data ControllerLog'[Action Taken],&lt;BR /&gt;1,&lt;BR /&gt;'def TrolleySegments'[Segment Name],&lt;BR /&gt;1,&lt;BR /&gt;'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;1,&lt;BR /&gt;'data TOSAIncident'[Correct date],&lt;BR /&gt;1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;EVALUATE&lt;BR /&gt;__DS0PrimaryWindowed&lt;/P&gt;&lt;P&gt;ORDER BY&lt;BR /&gt;'data TOSAIncident'[Occurrence Time Stamp],&lt;BR /&gt;'data TOSAIncident'[Reported By],&lt;BR /&gt;'data ControllerLog'[Nature Of Call],&lt;BR /&gt;'data ControllerLog'[Action Taken],&lt;BR /&gt;'def TrolleySegments'[Segment Name],&lt;BR /&gt;'v_CombinedLocationSegments'[Location Description],&lt;BR /&gt;'data TOSAIncident'[Correct date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 22:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Into-a-Paginated-Report/m-p/2940304#M97087</guid>
      <dc:creator>amandabus21</dc:creator>
      <dc:date>2022-11-30T22:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Into a Paginated Report</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Into-a-Paginated-Report/m-p/2940945#M97130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424505" data-lia-user-login="amandabus21" class="lia-mention lia-mention-user"&gt;amandabus21&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a thread that may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A class="" tabindex="-1" title="https://community.powerbi.com/t5/Desktop/Using-Paginated-Report-Builder-and-Existing-DAX-for-Matrix-Table/m-p/909842" href="https://community.powerbi.com/t5/Desktop/Using-Paginated-Report-Builder-and-Existing-DAX-for-Matrix-Table/m-p/909842" target="_blank" rel="noopener noreferrer" aria-label="Link Solved: Using Paginated Report Builder and Existing DAX fo... - Microsoft Power BI Community"&gt;Solved: Using Paginated Report Builder and Existing DAX fo... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/Power-BI-DAX-query-to-Paginated-report/m-p/2677785" target="_blank" rel="noopener"&gt;Solved: Power BI DAX query to Paginated report - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Yolo Zhu&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 06:10:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Into-a-Paginated-Report/m-p/2940945#M97130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T06:10:47Z</dc:date>
    </item>
  </channel>
</rss>

