<?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: Need help with Dax Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-Measure/m-p/3512006#M134789</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Usually it should not be slow but in some occasions&amp;nbsp;when creating a column inside SUMMARIZE. The thing is this is a simple sum calculation which leaves in doubts. However, you may try the following to avoid&amp;nbsp;creating the column inside SUMMARIZE.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Transaction Count =
SUMX (
    SUMMARIZE (
        'Compiled Sales',
        'Compiled Sales'[Store Code],
        'Compiled Sales'[BillNo]
    ),
    INT ( CALCULATE ( SUM ( 'Compiled Sales'[Sold Quantity] ) ) &amp;gt; 0 )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 02 Nov 2023 12:45:50 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-11-02T12:45:50Z</dc:date>
    <item>
      <title>Need help with Dax Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-Measure/m-p/3511871#M134779</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I have facing performance issue with a measure in my power bi report where I have creating the below measure&lt;/P&gt;&lt;P&gt;Transaction Count&amp;nbsp; =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'Compiled Sales',&lt;BR /&gt;'Compiled Sales'[Store Code],&lt;BR /&gt;'Compiled Sales'[BillNo],&lt;BR /&gt;"Total", SUM ( 'Compiled Sales'[Sold Quantity] )&lt;BR /&gt;),&lt;BR /&gt;[Total] &amp;gt; 0&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;can this measure be created in another way currently this dax is taking 20 sec and my main fact table has 20 million records.&lt;BR /&gt;please let me know if any other information is requried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 11:36:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-Measure/m-p/3511871#M134779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-02T11:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-Measure/m-p/3512006#M134789</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Usually it should not be slow but in some occasions&amp;nbsp;when creating a column inside SUMMARIZE. The thing is this is a simple sum calculation which leaves in doubts. However, you may try the following to avoid&amp;nbsp;creating the column inside SUMMARIZE.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Transaction Count =
SUMX (
    SUMMARIZE (
        'Compiled Sales',
        'Compiled Sales'[Store Code],
        'Compiled Sales'[BillNo]
    ),
    INT ( CALCULATE ( SUM ( 'Compiled Sales'[Sold Quantity] ) ) &amp;gt; 0 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Nov 2023 12:45:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-Measure/m-p/3512006#M134789</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-11-02T12:45:50Z</dc:date>
    </item>
  </channel>
</rss>

