<?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 not working in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206506#M65331</link>
    <description>&lt;P&gt;Hey &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Can you kindly elaborate on what you mean when the query starts to fold? Which settings do I need to adjust to get the expected results?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 20:28:02 GMT</pubDate>
    <dc:creator>anece</dc:creator>
    <dc:date>2021-11-24T20:28:02Z</dc:date>
    <item>
      <title>Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2205797#M65281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to filter rows by data in a certain column. The original (odata) dataset has about 50k rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the data looks like originally:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to filter&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= Table.SelectRows(Timeentries_table, each ([FK_RessourceID] = 1))&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;the results do not show the proper rows. I still get rows displayed which have a different value than 1 in column FK_RessourceID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As soon as I reduce the rows by&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= Table.AlternateRows(#"Gefilterte Zeilen",0,1000,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and reapply the filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= Table.SelectRows(#"Entfernte alternative Zeilen", each ([FK_RessourceID] = 1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the right rows are being displayed (those which have a [FK_RessourceID] = 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 12:34:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2205797#M65281</guid>
      <dc:creator>anece</dc:creator>
      <dc:date>2021-11-24T12:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206044#M65291</link>
      <description>&lt;P&gt;Sometimes there are issues when referring to the navigation step. Try adding a new blank step after the navigation step, and then refer to that new step in your SelectRows filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Nate&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 14:48:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206044#M65291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206136#M65301</link>
      <description>&lt;P&gt;Thanks for your suggestion. Doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you read closely - filtering is my very first step. That first step fails already.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:36:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206136#M65301</guid>
      <dc:creator>anece</dc:creator>
      <dc:date>2021-11-24T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206217#M65310</link>
      <description>&lt;P&gt;Steps should look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source&lt;/P&gt;
&lt;P&gt;Navigation&lt;/P&gt;
&lt;P&gt;NewEmptyStepName&lt;/P&gt;
&lt;P&gt;Table.SelectRows(NewEmptyStepName,...&lt;/P&gt;
&lt;P&gt;#"Your Next Filter"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That didn't work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Nate&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 16:20:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206217#M65310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T16:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206223#M65312</link>
      <description>&lt;P&gt;Thanks for the suggestion again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried it - it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully it was clear that reducing the number of rows seems to make the filter work. I don't know why.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 16:23:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206223#M65312</guid>
      <dc:creator>anece</dc:creator>
      <dc:date>2021-11-24T16:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206286#M65316</link>
      <description>&lt;P&gt;Apologies for intruding but isn't this the "you have to stop the query from folding to make it work issue"?&lt;/P&gt;
&lt;P&gt;If the query folds, it gets sent back to OData source and, depending on the settings there, the filtering doesn't work&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 16:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206286#M65316</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2021-11-24T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206506#M65331</link>
      <description>&lt;P&gt;Hey &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Can you kindly elaborate on what you mean when the query starts to fold? Which settings do I need to adjust to get the expected results?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 20:28:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206506#M65331</guid>
      <dc:creator>anece</dc:creator>
      <dc:date>2021-11-24T20:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206539#M65332</link>
      <description>&lt;P&gt;search for powerbi query folding and see these threads:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Basic-filter-in-power-query-editor-is-not-filtering/td-p/2147457" target="_self"&gt;https://community.powerbi.com/t5/Desktop/Basic-filter-in-power-query-editor-is-not-filtering/td-p/2147457&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/OData-filter-pass-through/td-p/155386" target="_self"&gt;https://community.powerbi.com/t5/Power-Query/OData-filter-pass-through/td-p/155386&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 21:06:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206539#M65332</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2021-11-24T21:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206540#M65333</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341089" data-lia-user-login="anece" class="lia-mention lia-mention-user"&gt;anece&lt;/a&gt;&amp;nbsp; is it possible to filter on the server side before you bring the data in PQ,; i.e. filtering in OData Rest URL itself?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://localhost:7048/DynamicsNAV/OData/Company/Customer?$filter=FK_ResourceID eq 1&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Nov 2021 21:06:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206540#M65333</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-24T21:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206601#M65334</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;, thanks for the suggestion and possible workaround. Unfortunately this is not possible. I don't have any control over the data which is being presented to me via odata. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 22:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2206601#M65334</guid>
      <dc:creator>anece</dc:creator>
      <dc:date>2021-11-24T22:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2207544#M65359</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;- thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Along with the posts you linked to, and your troubleshooting, it's an odata source problem.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Query Folding is when the Power Query transforms get rolled up and sent to the data source for processing.&amp;nbsp; We always aim for it because it makes for speedy and efficient processing.&amp;nbsp; Unfortunately with OData, it seems the transforms won't work unless there are certain properties set in OData (that's from the investigations jamesf did in one of those other posts).&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;So to get round this, we have to break Query Folding (you've done this with an Index, I think). The post I linked to uses Table.Buffer to load the table in memory and that worked too.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Hope this helps (and for anyone else looking for a solution).&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems to be the issue indeed. The source doesn't seem to handle the filtering requests accordingly. Buffering the entire table seems to do the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to be 100% sure: Do you know how I can see which requests are being sent to the server? Since it is https I can't simply sniff with Wireshark (and I don't want to fiddle around with a proxy, tunneling etc). Is there a kind of log in Power Query where I can see the communication between the client and the server?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 10:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2207544#M65359</guid>
      <dc:creator>anece</dc:creator>
      <dc:date>2021-11-25T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering not working</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2211530#M65526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341089" data-lia-user-login="anece" class="lia-mention lia-mention-user"&gt;anece&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to know the knowledge about query diagnosis?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Go to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;File&lt;/STRONG&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;Option and settings-&amp;gt;Options-&amp;gt;Diagnostics,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;you will find the logs if tracing is enabled by clicking "Open traces folder".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's a good tool to analysis the logs.&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://ruiromanoblog.wordpress.com/2016/01/08/power-bi-desktop-trace-logs-analyser" target="_self" rel="nofollow noopener noreferrer"&gt;Power BI Desktop Trace Logs Analyser&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may refer to:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-query/querydiagnostics" target="_blank"&gt;Query Diagnostics | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://docs.microsoft.com/en-us/power-query/recordingquerydiagnostics" target="_blank"&gt;Recording Query Diagnostics in Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Where-i-found-the-error-log-of-date-refresh-on-Power-BI-Desktop/td-p/54456" target="_blank"&gt; Solved: Where i found the error log of date refresh on Pow... - Microsoft Power BI Community &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;Stephen Tao&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 08:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Filtering-not-working/m-p/2211530#M65526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-29T08:08:43Z</dc:date>
    </item>
  </channel>
</rss>

