<?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: DAX Optimisation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Optimisation/m-p/3958236#M153607</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In terms of performance, using a variable is generally faster because it’s calculated once within the context of the measure where it’s used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the logic is complex and used in many different measures, defining it once as a variable and then using that variable within the same measure can be more efficient than referencing a separate measure multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence, Variables are better in performance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/dax-variables-better-readability-consistency-and-performance-in-power-bi-calculations" target="_blank" rel="noopener"&gt;DAX Variables: Better Readability, Consistency, and Performance in Power BI Calculations - RADACAD&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 13:53:18 GMT</pubDate>
    <dc:creator>Kaviraj11</dc:creator>
    <dc:date>2024-05-29T13:53:18Z</dc:date>
    <item>
      <title>DAX Optimisation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Optimisation/m-p/3957596#M153591</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple measure that start with the same variable :&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;VAR TO_CALCULATE = IF&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;AND&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;COUNTROWS&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;INDIC&lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt; = &lt;/FONT&gt;&lt;FONT&gt;1&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;MAX&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;INDIC[TYPE_LIGNE]&lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt; = &lt;/FONT&gt;&lt;FONT&gt;"INDIC"&lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt; , &lt;/FONT&gt;&lt;FONT&gt;TRUE&lt;/FONT&gt;&lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt; , &lt;/FONT&gt;&lt;FONT&gt;FALSE&lt;/FONT&gt;&lt;FONT&gt;())&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is it faster to create one separate measure "TO_CALCULATE" with this formula and use this new measure in my multiple other measure ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 10:29:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Optimisation/m-p/3957596#M153591</guid>
      <dc:creator>Uhrond</dc:creator>
      <dc:date>2024-05-29T10:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Optimisation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Optimisation/m-p/3958236#M153607</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In terms of performance, using a variable is generally faster because it’s calculated once within the context of the measure where it’s used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the logic is complex and used in many different measures, defining it once as a variable and then using that variable within the same measure can be more efficient than referencing a separate measure multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence, Variables are better in performance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/dax-variables-better-readability-consistency-and-performance-in-power-bi-calculations" target="_blank" rel="noopener"&gt;DAX Variables: Better Readability, Consistency, and Performance in Power BI Calculations - RADACAD&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 13:53:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Optimisation/m-p/3958236#M153607</guid>
      <dc:creator>Kaviraj11</dc:creator>
      <dc:date>2024-05-29T13:53:18Z</dc:date>
    </item>
  </channel>
</rss>

