<?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 How to use measure inside Summarize Function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/m-p/2147727#M49449</link>
    <description>&lt;P&gt;I want to use a measure inside this summarize function -&lt;/P&gt;&lt;P&gt;Table F1 = SUMMARIZE (&lt;BR /&gt;SELECTCOLUMNS (&lt;BR /&gt;'Opportunity Snapshot',&lt;BR /&gt;"Source", 'Opportunity Snapshot'[Start of Quarter - Copy],&lt;BR /&gt;"Target", 'Opportunity Snapshot'[Flow one Result],&lt;BR /&gt;"Opportunity ID",'Opportunity Snapshot'[Opportunity_ID_18__c],&lt;BR /&gt;"Quarter",'Opportunity Snapshot'[Quarter]&lt;BR /&gt;),&lt;BR /&gt;[Source],&lt;BR /&gt;[Target],&lt;BR /&gt;[Opportunity ID],&lt;BR /&gt;[Quarter],&lt;BR /&gt;"Total", SUM ( 'Opportunity Snapshot'[Incremental ACV (USD)] )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;Rather than using SUM function i want to use this measure -&lt;/P&gt;&lt;P&gt;Measure -&lt;BR /&gt;Last ACV =&lt;BR /&gt;VAR _id = MAX ('Opportunity Snapshot'[Opportunity_ID_18__c])&lt;BR /&gt;VAR _date = CALCULATE( MAX('Opportunity Snapshot'[Close_Date__c]), ALLSELECTED ('Opportunity Snapshot'), 'Opportunity Snapshot'[Opportunity_ID_18__c] = _id)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (SELECTEDVALUE( 'Opportunity Snapshot'[Incremental ACV (USD)] ), VALUES ('Opportunity Snapshot'[Opportunity_ID_18__c]),'Opportunity Snapshot'[Opportunity_ID_18__c] = _id,'Opportunity Snapshot'[Close_Date__c] = _date )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am unable to use measure because what i believe SUMMARIZE function doesn't allow you to do that. Can anybody help me out regarding that how can i achieve this&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 09:06:37 GMT</pubDate>
    <dc:creator>Amar-Agnihotri</dc:creator>
    <dc:date>2021-10-21T09:06:37Z</dc:date>
    <item>
      <title>How to use measure inside Summarize Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/m-p/2147727#M49449</link>
      <description>&lt;P&gt;I want to use a measure inside this summarize function -&lt;/P&gt;&lt;P&gt;Table F1 = SUMMARIZE (&lt;BR /&gt;SELECTCOLUMNS (&lt;BR /&gt;'Opportunity Snapshot',&lt;BR /&gt;"Source", 'Opportunity Snapshot'[Start of Quarter - Copy],&lt;BR /&gt;"Target", 'Opportunity Snapshot'[Flow one Result],&lt;BR /&gt;"Opportunity ID",'Opportunity Snapshot'[Opportunity_ID_18__c],&lt;BR /&gt;"Quarter",'Opportunity Snapshot'[Quarter]&lt;BR /&gt;),&lt;BR /&gt;[Source],&lt;BR /&gt;[Target],&lt;BR /&gt;[Opportunity ID],&lt;BR /&gt;[Quarter],&lt;BR /&gt;"Total", SUM ( 'Opportunity Snapshot'[Incremental ACV (USD)] )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;Rather than using SUM function i want to use this measure -&lt;/P&gt;&lt;P&gt;Measure -&lt;BR /&gt;Last ACV =&lt;BR /&gt;VAR _id = MAX ('Opportunity Snapshot'[Opportunity_ID_18__c])&lt;BR /&gt;VAR _date = CALCULATE( MAX('Opportunity Snapshot'[Close_Date__c]), ALLSELECTED ('Opportunity Snapshot'), 'Opportunity Snapshot'[Opportunity_ID_18__c] = _id)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (SELECTEDVALUE( 'Opportunity Snapshot'[Incremental ACV (USD)] ), VALUES ('Opportunity Snapshot'[Opportunity_ID_18__c]),'Opportunity Snapshot'[Opportunity_ID_18__c] = _id,'Opportunity Snapshot'[Close_Date__c] = _date )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am unable to use measure because what i believe SUMMARIZE function doesn't allow you to do that. Can anybody help me out regarding that how can i achieve this&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 09:06:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/m-p/2147727#M49449</guid>
      <dc:creator>Amar-Agnihotri</dc:creator>
      <dc:date>2021-10-21T09:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use measure inside Summarize Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/m-p/2152970#M49651</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I’m concerned, you can use the measures you created before in the newly created Summarize function in the &amp;lt;expression&amp;gt; parameter after the parameter &amp;lt;groupBy_columnName&amp;gt; and &amp;lt;name&amp;gt;, you can use the measure in your DAX formula like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table F1 = SUMMARIZE (
SELECTCOLUMNS (
'Opportunity Snapshot',
"Source", 'Opportunity Snapshot'[Start of Quarter - Copy],
"Target", 'Opportunity Snapshot'[Flow one Result],
"Opportunity ID",'Opportunity Snapshot'[Opportunity_ID_18__c],
"Quarter",'Opportunity Snapshot'[Quarter]
),
[Source],
[Target],
[Opportunity ID],
[Quarter],
"Total", [Last ACV] )
)&lt;/LI-CODE&gt;
&lt;P&gt;You can change the measure formula based on your needs.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more info, please refer to this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/td-p/2147727" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/td-p/2147727&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 08:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/m-p/2152970#M49651</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-10-25T08:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use measure inside Summarize Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/m-p/2158155#M49876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="260975" data-lia-user-login="v-robertq-msft" class="lia-mention lia-mention-user"&gt;v-robertq-msft&lt;/a&gt;&amp;nbsp;Thanks for the reply. Actually i was doing a small mistake.. issue has been resolved now&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 11:45:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-measure-inside-Summarize-Function/m-p/2158155#M49876</guid>
      <dc:creator>Amar-Agnihotri</dc:creator>
      <dc:date>2021-10-27T11:45:30Z</dc:date>
    </item>
  </channel>
</rss>

