<?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 How understand ”filter argument override the exsiting filter on the same column” from Expanded Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828105#M38839</link>
    <description>&lt;P&gt;I created a very simple model&amp;nbsp;with a one-to-many relationship, to better understand &lt;STRONG&gt;how ”the CALCULATE&amp;nbsp;filter argument on one column override the existing filter on the same column“ &lt;/STRONG&gt;from "Expanded Table" view.&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;Inside DAX , there are&amp;nbsp; 2 expanded tables for Sales and Product:&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;PC Sales =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE (&lt;BR /&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; SUM ( 'Sales'[Sales Quantity] ),&lt;BR /&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; 'Product'[Product] = "PC"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I created a measure [PC Sales] as above. I know the filter for the value ”PC“ on column 'Product'[Product] overvided any filter on same column&amp;nbsp;'Product'[Product], so, if I put the&amp;nbsp;'Product'[Product] on the row , and ,&amp;nbsp;[PC Sales] on values to creat a matrix in Power BI DESKTOP, every row showing the sales quantity of PC&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Matrix in Power BI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;PC Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PC&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mobile&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Grand Total&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question will be, if focus on row &lt;STRONG&gt;Mobile&lt;/STRONG&gt; I understand the filter context from&amp;nbsp;"Expanded Table" view, &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;does it application step are the follows?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Step 1 :&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt; Row&amp;nbsp;&lt;STRONG&gt;Mobile&lt;/STRONG&gt;&amp;nbsp;from matrix table&amp;nbsp; has a filter to 'Sales Expanded Table'，so, the original filter&amp;nbsp;context is :&amp;nbsp;&amp;nbsp;'Sales Expanded Table' filtered by the value "PC"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Step 2 :&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Filter argument from CALCULATE&amp;nbsp; has a &lt;STRONG&gt;"PC"&lt;/STRONG&gt; filter on same column&amp;nbsp;'Product'[Product], so, DAX deleted the existing filter&lt;STRONG&gt; ”Mobile“&lt;/STRONG&gt; on column 'Product'[Product], then add&amp;nbsp;a &lt;STRONG&gt;"PC"&lt;/STRONG&gt; filter, so the new filter context will be :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ProductID&lt;/TD&gt;&lt;TD&gt;Sales Quantity&lt;/TD&gt;&lt;TD&gt;ProductID&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;PC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;PC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 16:11:25 GMT</pubDate>
    <dc:creator>sangjinhong</dc:creator>
    <dc:date>2021-05-06T16:11:25Z</dc:date>
    <item>
      <title>How understand ”filter argument override the exsiting filter on the same column” from Expanded Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828105#M38839</link>
      <description>&lt;P&gt;I created a very simple model&amp;nbsp;with a one-to-many relationship, to better understand &lt;STRONG&gt;how ”the CALCULATE&amp;nbsp;filter argument on one column override the existing filter on the same column“ &lt;/STRONG&gt;from "Expanded Table" view.&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;Inside DAX , there are&amp;nbsp; 2 expanded tables for Sales and Product:&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;PC Sales =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE (&lt;BR /&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; SUM ( 'Sales'[Sales Quantity] ),&lt;BR /&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; 'Product'[Product] = "PC"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I created a measure [PC Sales] as above. I know the filter for the value ”PC“ on column 'Product'[Product] overvided any filter on same column&amp;nbsp;'Product'[Product], so, if I put the&amp;nbsp;'Product'[Product] on the row , and ,&amp;nbsp;[PC Sales] on values to creat a matrix in Power BI DESKTOP, every row showing the sales quantity of PC&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Matrix in Power BI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;PC Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PC&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mobile&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Grand Total&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question will be, if focus on row &lt;STRONG&gt;Mobile&lt;/STRONG&gt; I understand the filter context from&amp;nbsp;"Expanded Table" view, &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;does it application step are the follows?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Step 1 :&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt; Row&amp;nbsp;&lt;STRONG&gt;Mobile&lt;/STRONG&gt;&amp;nbsp;from matrix table&amp;nbsp; has a filter to 'Sales Expanded Table'，so, the original filter&amp;nbsp;context is :&amp;nbsp;&amp;nbsp;'Sales Expanded Table' filtered by the value "PC"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Step 2 :&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Filter argument from CALCULATE&amp;nbsp; has a &lt;STRONG&gt;"PC"&lt;/STRONG&gt; filter on same column&amp;nbsp;'Product'[Product], so, DAX deleted the existing filter&lt;STRONG&gt; ”Mobile“&lt;/STRONG&gt; on column 'Product'[Product], then add&amp;nbsp;a &lt;STRONG&gt;"PC"&lt;/STRONG&gt; filter, so the new filter context will be :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ProductID&lt;/TD&gt;&lt;TD&gt;Sales Quantity&lt;/TD&gt;&lt;TD&gt;ProductID&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;PC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;PC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 16:11:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828105#M38839</guid>
      <dc:creator>sangjinhong</dc:creator>
      <dc:date>2021-05-06T16:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How understand ”filter argument override the exsiting filter on the same column” from Expanded Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828116#M38843</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="300250" data-lia-user-login="sangjinhong" class="lia-mention lia-mention-user"&gt;sangjinhong&lt;/a&gt; , I am not able to get what you said after&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Matrix in Power BI&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;PC Sales&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;PC&lt;/TD&gt;
&lt;TD&gt;30&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Mobile&lt;/TD&gt;
&lt;TD&gt;30&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Grand Total&lt;/TD&gt;
&lt;TD&gt;30&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain what is needed and you are not getting what.&lt;/P&gt;
&lt;P&gt;To understand why you are getting all 30 rows &lt;A href="http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/" target="_blank"&gt;http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 16:18:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828116#M38843</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-06T16:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How understand ”filter argument override the exsiting filter on the same column” from Expanded Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828555#M38858</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I just want to understand how &lt;STRONG&gt;the filter from matrix table&lt;/STRONG&gt; and &lt;STRONG&gt;filter argument from CALCUALTE&lt;/STRONG&gt; apply to expanded table inside the DAX&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 22:19:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828555#M38858</guid>
      <dc:creator>sangjinhong</dc:creator>
      <dc:date>2021-05-06T22:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How understand ”filter argument override the exsiting filter on the same column” from Expanded Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828574#M38860</link>
      <description>&lt;P&gt;The filter from the matrix is on the PC column only. Expanded tables play a role when you filter an entire table, which is not what you are doing. CALCULATE ( ..., FILTER ( Sales, Sales[Q] = 1 ) ) would be a table filter. There, the expanded table plays some role. But neither the matrix, nor your code apply filters to tables: you are filtering only columns. Therefore, expanded tables are not part of the game here.&lt;/P&gt;&lt;P&gt;You can find some more info here:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/expanded-tables-in-dax" target="_blank"&gt;https://www.sqlbi.com/articles/expanded-tables-in-dax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 22:41:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828574#M38860</guid>
      <dc:creator>AlbertoFerrari</dc:creator>
      <dc:date>2021-05-06T22:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How understand ”filter argument override the exsiting filter on the same column” from Expanded Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828619#M38864</link>
      <description>&lt;P&gt;thanks Alberto.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I read the section "&lt;STRONG&gt;Filter propagation&lt;/STRONG&gt;",&amp;nbsp; try to understand &lt;SPAN&gt;how &lt;/SPAN&gt;the filters on&amp;nbsp;&lt;SPAN&gt;'Product'[Product]&amp;nbsp;from matrix and filter argument from CALCULATE fitlered the expanded version of Sales.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so I came out my understanding:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The filter&amp;nbsp;from matrix filtered &lt;STRONG&gt;&lt;EM&gt;the expanded version of Sales&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;first then&amp;nbsp;filter&amp;nbsp;from CALCUATE argument filtered &lt;STRONG&gt;&lt;EM&gt;the resulting&amp;nbsp;expanded version of Sales&lt;/EM&gt;&lt;/STRONG&gt;--- is that correct? thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When you filter Product[Product], all the tables that contain that column – either native or related – are filtered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus, Sales is filtered by Product[Product] because the expanded version of Sales contains Product[Product].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="71" data-lia-user-login="AlbertoFerrari" class="lia-mention lia-mention-user"&gt;AlbertoFerrari&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The filter from the matrix is on the PC column only. Expanded tables play a role when you filter an entire table, which is not what you are doing. CALCULATE ( ..., FILTER ( Sales, Sales[Q] = 1 ) ) would be a table filter. There, the expanded table plays some role. But neither the matrix, nor your code apply filters to tables: you are filtering only columns. Therefore, expanded tables are not part of the game here.&lt;/P&gt;&lt;P&gt;You can find some more info here:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/expanded-tables-in-dax" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/expanded-tables-in-dax&lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 23:48:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-understand-filter-argument-override-the-exsiting-filter-on/m-p/1828619#M38864</guid>
      <dc:creator>sangjinhong</dc:creator>
      <dc:date>2021-05-06T23:48:45Z</dc:date>
    </item>
  </channel>
</rss>

