<?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: Expanded table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415908#M175348</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expanded table "Winesales" in the second CALCULATE does not overwrite the effect of the context transition. Instead, it ensures that the calculation of [Total Sales] is done over the entire Winesales table, ignoring any filters that might be applied due to the context transition.&lt;/P&gt;
&lt;P&gt;Original DAX Expression&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[No of Sales],&lt;BR /&gt;FILTER(&lt;BR /&gt;Winesales,&lt;BR /&gt;[Total Sales] &amp;gt; CALCULATE([Total Sales], Winesales) * 0.05&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Explanation&lt;BR /&gt;Context Transition: When CALCULATE is used, it transforms the row context into a filter context. This means that any row context that exists is converted into a filter context, which can affect the calculation of measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table Expansion: When you reference a table inside a CALCULATE function, it can expand to include related tables, which can affect the results of the calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the expression CALCULATE([Total Sales], Winesales), the Winesales table is referenced explicitly. This ensures that the calculation of [Total Sales] is done over the entire Winesales table, ignoring any filters that might be applied due to the context transition. This is crucial for calculating the correct threshold value.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 12:53:27 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-02-18T12:53:27Z</dc:date>
    <item>
      <title>Expanded table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415735#M175343</link>
      <description>&lt;P&gt;&lt;img /&gt;In this measure, does the expanded table "Winesales" in the second calculate override the effect of context transition. Can someone explain how this works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if i replace the second calculate with SumX(Winesales, [Total Sales])* 0.05 . Does it yield the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 11:11:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415735#M175343</guid>
      <dc:creator>Cyriackpazhe</dc:creator>
      <dc:date>2025-02-18T11:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expanded table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415820#M175344</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached document explaining to do the calculation step by step by defining variables to make it simple. And this is standard practice. Sumx to be used if you need row by row operation whis is not required here.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:03:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415820#M175344</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2025-02-18T12:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expanded table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415847#M175346</link>
      <description>&lt;P&gt;My doubt is does the expanded "Winesales" In second calculate overwrite the effect context transition that happens&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:15:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415847#M175346</guid>
      <dc:creator>Cyriackpazhe</dc:creator>
      <dc:date>2025-02-18T12:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expanded table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415908#M175348</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expanded table "Winesales" in the second CALCULATE does not overwrite the effect of the context transition. Instead, it ensures that the calculation of [Total Sales] is done over the entire Winesales table, ignoring any filters that might be applied due to the context transition.&lt;/P&gt;
&lt;P&gt;Original DAX Expression&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[No of Sales],&lt;BR /&gt;FILTER(&lt;BR /&gt;Winesales,&lt;BR /&gt;[Total Sales] &amp;gt; CALCULATE([Total Sales], Winesales) * 0.05&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Explanation&lt;BR /&gt;Context Transition: When CALCULATE is used, it transforms the row context into a filter context. This means that any row context that exists is converted into a filter context, which can affect the calculation of measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table Expansion: When you reference a table inside a CALCULATE function, it can expand to include related tables, which can affect the results of the calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the expression CALCULATE([Total Sales], Winesales), the Winesales table is referenced explicitly. This ensures that the calculation of [Total Sales] is done over the entire Winesales table, ignoring any filters that might be applied due to the context transition. This is crucial for calculating the correct threshold value.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:53:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Expanded-table/m-p/4415908#M175348</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-18T12:53:27Z</dc:date>
    </item>
  </channel>
</rss>

