<?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 Weighted Average DAX Expression in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701760#M81806</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;i have list of multiple category to calculate&amp;nbsp;&lt;SPAN&gt;Weighted Averages, to calculate Weighted avg first i have to filter Month, SKU, then Traders &lt;/SPAN&gt;In excel. i applied Sumproduct formula and i am getting exect Weighted Avg Number.&lt;/P&gt;&lt;P&gt;But when i tried to apply DAX Expression i am not getting the exact number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Weighted Average =&lt;/P&gt;&lt;P&gt;DIVIDE (&lt;/P&gt;&lt;P&gt;SUMX ( 'Table', [SumMillion Ton] * [Rate Per] ),&lt;BR /&gt;SUMX ( 'Table', [Million Ton] )&lt;BR /&gt;) &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help to resolve this query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 09:21:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-16T09:21:50Z</dc:date>
    <item>
      <title>Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701760#M81806</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;i have list of multiple category to calculate&amp;nbsp;&lt;SPAN&gt;Weighted Averages, to calculate Weighted avg first i have to filter Month, SKU, then Traders &lt;/SPAN&gt;In excel. i applied Sumproduct formula and i am getting exect Weighted Avg Number.&lt;/P&gt;&lt;P&gt;But when i tried to apply DAX Expression i am not getting the exact number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Weighted Average =&lt;/P&gt;&lt;P&gt;DIVIDE (&lt;/P&gt;&lt;P&gt;SUMX ( 'Table', [SumMillion Ton] * [Rate Per] ),&lt;BR /&gt;SUMX ( 'Table', [Million Ton] )&lt;BR /&gt;) &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help to resolve this query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701760#M81806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T09:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701795#M81809</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Weighted Average =
VAR CurrentTable =
    CALCULATETABLE (
        'Table',
        ALLEXCEPT ( 'Table', 'Table'[Traders Name], 'Table'[SKU], 'Table'[Month] )
    )
RETURN
    DIVIDE (
        SUMX ( CurrentTable, [SumMillion Ton] * [Rate Per] ),
        SUMX ( CurrentTable, [Million Ton] )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Aug 2022 04:34:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701795#M81809</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T04:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701801#M81810</link>
      <description>&lt;P&gt;Dear Tamerj,&lt;/P&gt;&lt;P&gt;Thanks for the update, As i have applied the fourmula which you provided but still i am not getting the exact value.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 04:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701801#M81810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T04:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701821#M81811</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Can you please&amp;nbsp;advise what is the formula that you have used in excel for the numerator and the denominator?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 05:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701821#M81811</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T05:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701825#M81812</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;To get value i am using Sumproduct formula- =SUMPRODUCT(MT*FSU)/SUM(MT)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 05:04:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701825#M81812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T05:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701872#M81814</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apparently some of the provided information is no accurate. Are you&amp;nbsp;sure you are filtering by month as well? As the&amp;nbsp;sample screenshot does not say so. Please share the sample Excel file in order to verify exactly how the calculation is supposed to be handled. Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 05:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701872#M81814</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T05:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701949#M81816</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;A title="Data Sheet attached for Weighted Average" href="https://docs.google.com/spreadsheets/d/1lH6RT66z9q1HVff-DISi2BtDyFP6SK8B/edit?usp=drivesdk&amp;amp;ouid=112245974193001938705&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;Data Sheet&lt;/A&gt;&amp;nbsp;Kindly find the attcahed sheet for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 05:56:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701949#M81816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T05:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701955#M81817</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great. I'll look into it once I'm back to office.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 05:58:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2701955#M81817</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T05:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702074#M81824</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I cannot download&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 06:44:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702074#M81824</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T06:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702108#M81827</link>
      <description>&lt;P&gt;Are you able to access now ?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 06:55:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702108#M81827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T06:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702128#M81829</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes. But There is no formula for WA Avg&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 07:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702128#M81829</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702573#M81854</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;A title="Data Set" href="https://docs.google.com/spreadsheets/d/1m0ofXHIE8Q0csyaWFtqEUw9XGsmmbhLI/edit?usp=drivesdk&amp;amp;ouid=112245974193001938705&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;Data&lt;/A&gt; As suggested i have added the formula in attcahed sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Chk and let me know&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:07:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702573#M81854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702669#M81858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This seems to me completely random&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:38:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702669#M81858</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T09:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702718#M81863</link>
      <description>&lt;P&gt;&lt;A title="Data" href="https://docs.google.com/spreadsheets/d/1m7tRQvvaraJQnCeKQdDqRvrLG82M7WOI/edit?usp=drivesdk&amp;amp;ouid=112245974193001938705&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;Data Set&lt;/A&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt; I have added the updated sheet for&amp;nbsp;reference.&lt;/P&gt;&lt;P&gt;Please check and let me know&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:55:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702718#M81863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T09:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702833#M81872</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Still random! are you sure the DAX formula outcome is not correct?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 10:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702833#M81872</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T10:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702897#M81874</link>
      <description>&lt;P&gt;Yes still their is some difference in WA, As suggested i have applied the below formula but&amp;nbsp; number is not matching&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Weighted Average = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR CurrentTable =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Data 22',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT ( 'FData 22', 'Data 22'[IMPORTER NAME], 'Data 22'[SKU], 'Data 22'[MONTH], 'Data 22'[YEAR] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX ( CurrentTable, [MT Vol] * [Rate Per FSU] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX ( CurrentTable, [MT Vol] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Aug 2022 11:21:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702897#M81874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T11:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702923#M81877</link>
      <description>&lt;P&gt;In this report i am filtering the data Month follow with SKU then Importer name. Once will select the Importer name. then i applied the Sumproduct formula to find WA&lt;/P&gt;&lt;P&gt;eg :&amp;nbsp;=SUMPRODUCT($P$5446:$P$5585,$I$5446:$I$5585)/SUM($I$5446:$I$5585)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 11:33:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702923#M81877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T11:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702965#M81878</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Then my original DAX formula should give the exct result.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 11:47:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2702965#M81878</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T11:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average DAX Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2703101#M81884</link>
      <description>&lt;P&gt;Thanks for your support i will apply the same DAX Formula as you suggested.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 12:35:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weighted-Average-DAX-Expression/m-p/2703101#M81884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-16T12:35:00Z</dc:date>
    </item>
  </channel>
</rss>

