<?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 for Summarizing at an aggregate level in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960360#M98546</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
    VAR __Table = GROUPBY('Table5',[Car],"__Avg",AVERAGEX(CURRENTGROUP(),[Amount]))
    VAR __Result = SUMX(__Table,[__Avg])
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2022 14:39:15 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-12-10T14:39:15Z</dc:date>
    <item>
      <title>DAX for Summarizing at an aggregate level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960351#M98543</link>
      <description>&lt;P&gt;I have two tables. One with the total sale amount for the month by car and another with the details showing car, model, and sales person. I have merged the to tables together and need to find a way to write dax that gives me the sum of the amount sold without over counting. **NOTE in my example I do not have the ability to split these tables out into two tables and relate them so I need a DAX that can work off the belnded fact table (Table 3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a DAX measure that sums the amount for cars sold. In table 1 below the total amount that was sold was $2400. (1000 + 200 + 400 + 800). You can see on the green merged table 2 below those amount values are duplicated and I need to be able to sum the column, but sum the unique values by car.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sales Amount for the month by Car (&lt;STRONG&gt;Table 1&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sales Detail (&lt;STRONG&gt;Table 2&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 3&lt;/STRONG&gt;: Blended Fact Table (Main Fact Table I need DAX built off of)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the formula I have showing the "&lt;STRONG&gt;INCORRECT&lt;/STRONG&gt;" value....&lt;/P&gt;&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;SPAN class=""&gt;Sales Amount:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Table3[Amount])&lt;/SPAN&gt;&lt;!--   EndFragment    --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;7,200 is not the right amount, it should be 2,400 for the month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a dax formula that shows me this....&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you write dax &lt;STRONG&gt;off Table 3&lt;/STRONG&gt; that gives you the table above showing 2,400, if the amount values from the first table are duplicated when merged with the second table?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 14:29:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960351#M98543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-10T14:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Summarizing at an aggregate level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960360#M98546</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
    VAR __Table = GROUPBY('Table5',[Car],"__Avg",AVERAGEX(CURRENTGROUP(),[Amount]))
    VAR __Result = SUMX(__Table,[__Avg])
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 14:39:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960360#M98546</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-12-10T14:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Summarizing at an aggregate level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960374#M98551</link>
      <description>&lt;P&gt;Yep that worked! Curious if there is another way to write the formula without the Average? Could you leverage SUMMARIZE somehow?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 15:39:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960374#M98551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-10T15:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Summarizing at an aggregate level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960431#M98555</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Well, there are a couple ways of going about it but that way was the simplest for your scenario. SUMMARIZE can get you in trouble sometimes.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 17:33:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Summarizing-at-an-aggregate-level/m-p/2960431#M98555</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-12-10T17:33:33Z</dc:date>
    </item>
  </channel>
</rss>

