<?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: Keepfilters vs Filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545428#M71855</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the in accurate explanation. &amp;nbsp;&lt;BR /&gt;CALCULATE ( [Amount],&amp;nbsp;"Product' [Color] = "green" ) is actually translated into&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE ( [Amount], FILTER ( ALL ( Product), 'Product' [Color] = "green" ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which returns the value of green in all cells.&amp;nbsp;&lt;BR /&gt;this is because the filter context of each cell contains the coplete product table while when using only FILTER the filter context &amp;nbsp;in each cell contains only the related color therefore the intersection is empty except for green.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 28 May 2022 17:23:05 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-05-28T17:23:05Z</dc:date>
    <item>
      <title>Keepfilters vs Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545370#M71843</link>
      <description>&lt;P&gt;Here I have calculted two measures and they produced the same result. which one is more efficient and why?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 16:05:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545370#M71843</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-28T16:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Keepfilters vs Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545394#M71849</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes becuase the first one is actually&amp;nbsp;&lt;/P&gt;&lt;P&gt;KEEPFILTERS (&amp;nbsp;FILTER(*Product, 'Product' [Color] = "green' ) )&lt;/P&gt;&lt;P&gt;where here KEEPFILTERS does nothing&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 16:49:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545394#M71849</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-28T16:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Keepfilters vs Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545410#M71850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, your answer seems confusing to me. Could you please elaborate?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 17:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545410#M71850</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-28T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Keepfilters vs Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545428#M71855</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the in accurate explanation. &amp;nbsp;&lt;BR /&gt;CALCULATE ( [Amount],&amp;nbsp;"Product' [Color] = "green" ) is actually translated into&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE ( [Amount], FILTER ( ALL ( Product), 'Product' [Color] = "green" ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which returns the value of green in all cells.&amp;nbsp;&lt;BR /&gt;this is because the filter context of each cell contains the coplete product table while when using only FILTER the filter context &amp;nbsp;in each cell contains only the related color therefore the intersection is empty except for green.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 17:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545428#M71855</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-28T17:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Keepfilters vs Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545430#M71856</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380340" data-lia-user-login="Alex_Hasan" class="lia-mention lia-mention-user"&gt;Alex_Hasan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would suggest you use the 1st Measure "Green Sales":&lt;BR /&gt;&lt;BR /&gt;Explanation: You have effectively used KEEPFILTER here to show sales only when Green colour is visible. The most important point is, only the Product [Colour] column is used but the in the second measure, you are referring to the full Product table within the Filter function which is not efficient, also it will have the unexpected effect of expanded table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 17:26:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keepfilters-vs-Filters/m-p/2545430#M71856</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2022-05-28T17:26:13Z</dc:date>
    </item>
  </channel>
</rss>

