<?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 Re: Filtering in DAX Query for Paginated report, can I make my filter more efficient? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103992#M48029</link>
    <description>&lt;P&gt;Hi colacan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have filtered it by applying row level security, I can't filter on Default Access = "Yes" because I need the "no" for the else part of the filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou very much for your thoughts&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 22:16:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-28T22:16:14Z</dc:date>
    <item>
      <title>Filtering in DAX Query for Paginated report, can I make my filter more efficient?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103854#M48020</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DAX virtual table that is a cross join between 2 tables in the model, which I need to filter in a paginated reports Data Sets. the Tabular Model needs to be filtered&amp;nbsp;on 2 lookup tables, each of which has a foreign&amp;nbsp;key in the table, in this I have called them code 1 and code 2, Table 1 is the DAX virtual table, here is the filter statement:-&lt;/P&gt;&lt;P&gt;var __DS0FilterTable1 =&lt;BR /&gt;FILTER (&lt;BR /&gt;'Table 1',&lt;BR /&gt;IF (&lt;BR /&gt;_Default = "Yes",&lt;BR /&gt;'Table 1'[Default Access]="Yes",&lt;BR /&gt;PATHCONTAINS ( _Input, 'Table 1'[Code 1]) || PATHCONTAINS ( _Input, 'Table 1'[Code 2])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously it is a filter used in the final query statement, because the table is very large, caused by the cross join, the filtering is quite slow, I noted in some other posts that the advice is not to use the filter function, but I can't see how to make this filter with out using the filter function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 20:51:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103854#M48020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-28T20:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering in DAX Query for Paginated report, can I make my filter more efficient?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103915#M48026</link>
      <description>&lt;P&gt;I'm not sure tinkering with just this specific part will be able to help greatly. Maybe you don't need such a large cross join to begin with? In any case, it would be useful to see more context (e.g. the whole query and the cross join table definition).&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 21:35:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103915#M48026</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-09-28T21:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering in DAX Query for Paginated report, can I make my filter more efficient?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103963#M48027</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Hi AndyMay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may help if you filter the Table1 when you make it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1 =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CROSSJOIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; Cross1, Cross2 &lt;SPAN&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;cross1[Default Access]&lt;/SPAN&gt;=&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you need to filter it based on a column value from Cross2, you can wrap it again with&amp;nbsp;CALCULATETABLE(... , Cross2[col] = "")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please mark it as solution if this helped you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 21:58:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103963#M48027</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-09-28T21:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering in DAX Query for Paginated report, can I make my filter more efficient?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103992#M48029</link>
      <description>&lt;P&gt;Hi colacan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have filtered it by applying row level security, I can't filter on Default Access = "Yes" because I need the "no" for the else part of the filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou very much for your thoughts&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:16:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-in-DAX-Query-for-Paginated-report-can-I-make-my-filter/m-p/2103992#M48029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-28T22:16:14Z</dc:date>
    </item>
  </channel>
</rss>

