<?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: summarize performance in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/summarize-performance/m-p/3018292#M102580</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I will write Dax using GENERATE function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The aggregate should be different depending on the date Between selection in the report, so we made Summarize from the Measure value, but is this the part that is considered?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 03:59:01 GMT</pubDate>
    <dc:creator>ericjo</dc:creator>
    <dc:date>2023-01-13T03:59:01Z</dc:date>
    <item>
      <title>summarize performance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/summarize-performance/m-p/3015927#M102420</link>
      <description>&lt;P&gt;hello,&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;I made a measurement using the summarize function as below, but the speed is slow, so please help me if there is any way to improve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a : Cust_ID Summarize with one exter_id (Order_ID) based on the customer type "Rewards" based on Cust_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b : Check the quantity purchased by product using cust_ID of 'a'&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Purchase_1_A = 
var a =
FILTER(
SUMMARIZECOLUMNS('anl_dm_loyalty_sales_point_mart'[saguid])
                            ,CALCULATE(DISTINCTCOUNT('anl_dm_loyalty_sales_point_mart'[exter_id])
                                        ,'anl_dm_loyalty_sales_point_mart'[Cust_Type] = "Rewards"
                                        ,ALL('std_product_loyalty'[product_name])
                                        )=1)
							
var b = 
SUMMARIZE(CALCULATETABLE('anl_dm_loyalty_sales_point_mart'
                                        ,'anl_dm_loyalty_sales_point_mart'[Cust_Type] = "Rewards"
                                        ,'anl_dm_loyalty_sales_point_mart'[saguid] IN a
                                        )
                            ,[saguid]
                            ,[obj_id]
                            ,"Qty",CALCULATE(SUM('anl_dm_loyalty_sales_point_mart'[quantity])
                                                ,FILTER('std_product_loyalty','std_product_loyalty'[product_name] &amp;lt;&amp;gt; BLANK()))
)
                                                
Return
SUMX(b,[Qty])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 07:31:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/summarize-performance/m-p/3015927#M102420</guid>
      <dc:creator>ericjo</dc:creator>
      <dc:date>2023-01-12T07:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: summarize performance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/summarize-performance/m-p/3016030#M102426</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289985" data-lia-user-login="ericjo" class="lia-mention lia-mention-user"&gt;ericjo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Any restrictions of using GENERATE function?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 08:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/summarize-performance/m-p/3016030#M102426</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-12T08:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: summarize performance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/summarize-performance/m-p/3018292#M102580</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I will write Dax using GENERATE function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The aggregate should be different depending on the date Between selection in the report, so we made Summarize from the Measure value, but is this the part that is considered?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 03:59:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/summarize-performance/m-p/3018292#M102580</guid>
      <dc:creator>ericjo</dc:creator>
      <dc:date>2023-01-13T03:59:01Z</dc:date>
    </item>
  </channel>
</rss>

