<?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: Power BI Filtering a column vs Filtering a table when is the difference apparent and when not in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778707#M37342</link>
    <description>&lt;P&gt;In &lt;STRONG&gt;Case 2&lt;/STRONG&gt; you get what you get because there is no context transition for the measures as was in the case of ADDCOLUMNS. The filters are already in place when the measures get down to work.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Apr 2021 21:32:03 GMT</pubDate>
    <dc:creator>daxer-almighty</dc:creator>
    <dc:date>2021-04-11T21:32:03Z</dc:date>
    <item>
      <title>Power BI Filtering a column vs Filtering a table when is the difference apparent and when not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1777991#M37294</link>
      <description>&lt;P&gt;Power BI Filtering a column vs Filtering a table when is the difference apparent and when not&lt;BR /&gt;Can some expert help me to make this clear in context to this example from DAX Definitive guide 2nd edition by &lt;SPAN&gt;Alberto Ferrari Chapter 14 ( Unfortunately I am not able to understand the explanation there even after sequential reading)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To explain my confusion ; I am clear (may be not aware of some nuance ) about dax expanded table which &lt;STRONG&gt;expands&lt;/STRONG&gt; towards one side of the table in m-1 or 1-1 relationship { So if you just reply me with expanded table as reasone it would still not help me here to be frank , unless you can please help me with any nuance if exists )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBIX : Contoso public data model for microsoft&lt;BR /&gt;&lt;BR /&gt;QUESTION :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;.I am not getting why in Case 2 -&lt;STRONG&gt;FilterTabMeasure&lt;/STRONG&gt; &lt;STRONG&gt;equal&lt;/STRONG&gt; to &lt;STRONG&gt;FilterTab&amp;nbsp;&lt;/STRONG&gt; ?&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;1a.&lt;/STRONG&gt;I am not getting why splitting&amp;nbsp;into the individual measure and trying to make the same gui report as in case 1 makes the result vary.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2.I am not getting why in Case 1 -FilterCol not equal to FilterTab&amp;nbsp; ?&lt;BR /&gt;&lt;BR /&gt;2a.&lt;/STRONG&gt; Further Why f&lt;STRONG&gt;ilter tab&lt;/STRONG&gt; value is the same for&amp;nbsp; all the rows ; Why context transition is being ignored here for FilterTab but respected for FilterCol ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case 1 : Apply this expression directly&lt;/STRONG&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;EVALUATE&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;VALUES ( 'Product'[Brand] ),&lt;BR /&gt;"&lt;STRONG&gt;FilterCol&lt;/STRONG&gt;", CALCULATE (&lt;BR /&gt;[Sales Amount],&lt;BR /&gt;Sales[Quantity] &amp;gt; 1&lt;BR /&gt;),&lt;BR /&gt;"&lt;STRONG&gt;FilterTab&lt;/STRONG&gt;", CALCULATE (&lt;BR /&gt;[Sales Amount],&lt;BR /&gt;FILTER (&lt;BR /&gt;Sales,&lt;BR /&gt;Sales[Quantity] &amp;gt; 1&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Side note : [Sales amount is a measure as defined below]&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Sales Amount&lt;/STRONG&gt; = SUMX ( Sales, Sales[Quantity] * Sales[Net Price] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;--------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;Case 2 :&lt;BR /&gt;Split the above expression into two masure&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;FilterColMeasure&lt;/STRONG&gt;&amp;nbsp;= CALCULATE (&lt;/DIV&gt;&lt;DIV&gt;[Sales Amount],&lt;/DIV&gt;&lt;DIV&gt;Sales[Quantity] &amp;gt; 1)&lt;BR /&gt;-------------&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;FilterTabMeasure&amp;nbsp;&lt;/STRONG&gt;= CALCULATE (&lt;/DIV&gt;&lt;DIV&gt;[Sales Amount],&lt;/DIV&gt;&lt;DIV&gt;FILTER (&lt;/DIV&gt;&lt;DIV&gt;Sales,&lt;/DIV&gt;&lt;DIV&gt;Sales[Quantity] &amp;gt; 1))&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Side note&lt;/STRONG&gt; : [Sales amount is a measure as defined below]&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;SPAN&gt;Sales Amount = SUMX ( Sales, Sales[Quantity] * Sales[Net Price] )&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;Now-; &lt;STRONG&gt;&lt;BR /&gt;Pull a table, pull values as the Product brand, and above two filters.&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;CASE 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; CASE-2&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 10:23:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1777991#M37294</guid>
      <dc:creator>dhrubojtg</dc:creator>
      <dc:date>2021-04-13T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Filtering a column vs Filtering a table when is the difference apparent and when not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778101#M37300</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Please comment if you have some time .Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 14:56:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778101#M37300</guid>
      <dc:creator>dhrubojtg</dc:creator>
      <dc:date>2021-04-10T14:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Filtering a column vs Filtering a table when is the difference apparent and when not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778300#M37312</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; If you can please help on above understanding .Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 04:14:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778300#M37312</guid>
      <dc:creator>dhrubojtg</dc:creator>
      <dc:date>2021-04-11T04:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Filtering a column vs Filtering a table when is the difference apparent and when not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778695#M37341</link>
      <description>&lt;P&gt;Your &lt;STRONG&gt;Case 1&lt;/STRONG&gt; can be written as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;EVALUATE
ADDCOLUMNS(
    VALUES( 'Product'[Brand] ),
    "FilterCol",
        CALCULATE(
            [Sales Amount],
            FILTER(
                ALL( Sales[Quantity] ), -- this only filters one column
                Sales[Quantity] &amp;gt; 1
            )
        ),
    "FilterTab",
        CALCULATE(
            [Sales Amount],
            FILTER(
                Sales, -- this filters all the table BEFORE context transition
                Sales[Quantity] &amp;gt; 1
            )
        )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, do you see the difference?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 21:29:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778695#M37341</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-04-11T21:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Filtering a column vs Filtering a table when is the difference apparent and when not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778707#M37342</link>
      <description>&lt;P&gt;In &lt;STRONG&gt;Case 2&lt;/STRONG&gt; you get what you get because there is no context transition for the measures as was in the case of ADDCOLUMNS. The filters are already in place when the measures get down to work.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 21:32:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1778707#M37342</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-04-11T21:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Filtering a column vs Filtering a table when is the difference apparent and when not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1782258#M37406</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255913" data-lia-user-login="daxer-almighty" class="lia-mention lia-mention-user"&gt;daxer-almighty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I forgot to mention sales amount measure defination i have updated in qn does your answer still hold good&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 10:26:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1782258#M37406</guid>
      <dc:creator>dhrubojtg</dc:creator>
      <dc:date>2021-04-13T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Filtering a column vs Filtering a table when is the difference apparent and when not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1782259#M37407</link>
      <description>&lt;P&gt;I forgot to mention sales amount measure defination i have updated in qn does your answer still hold good&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 10:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Filtering-a-column-vs-Filtering-a-table-when-is-the/m-p/1782259#M37407</guid>
      <dc:creator>dhrubojtg</dc:creator>
      <dc:date>2021-04-13T10:26:59Z</dc:date>
    </item>
  </channel>
</rss>

