<?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: SUMX weighted average doesn't work in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1751366#M36497</link>
    <description>&lt;P&gt;Can anyone give it a try? I still can't get to the right result&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 09:06:36 GMT</pubDate>
    <dc:creator>PshemekFLK</dc:creator>
    <dc:date>2021-03-29T09:06:36Z</dc:date>
    <item>
      <title>SUMX weighted average doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1739897#M36137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out why sumx doesn't result in the correct weighted average:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Formula for Funnel Speed (Months) =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF( HASONEVALUE('Funnel Data'[Opportunity Closed Mo No]), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SUM('Funnel Data'[Funnel Speed])/30,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DIVIDE(SUMX('Funnel Data','Funnel Data'[Funnel Speed]/30*'Funnel Data'[Opportunities Won Value USD]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUM('Funnel Data'[Opportunities Won Value USD])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The correct result for Total should be ((15,561*1.9)+(17,999)*0.4)+(47,335*3.9))/80,895 = 221,337/80,895 = 2.7 instead of 1.2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;There are visual filters applied on that matrix. Is that the issue?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:19:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1739897#M36137</guid>
      <dc:creator>PshemekFLK</dc:creator>
      <dc:date>2021-03-23T14:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX weighted average doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1739935#M36138</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="78321" data-lia-user-login="PshemekFLK" class="lia-mention lia-mention-user"&gt;PshemekFLK&lt;/a&gt; , try a measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Formula for Funnel Speed (Months) = &lt;BR /&gt;IF( Sumx(values('Funnel Data'[Opportunity Closed Mo No]),calculate(&lt;BR /&gt;SUM('Funnel Data'[Funnel Speed])/30,&lt;BR /&gt;DIVIDE(SUMX('Funnel Data','Funnel Data'[Funnel Speed]/30*'Funnel Data'[Opportunities Won Value USD]),&lt;BR /&gt;SUM('Funnel Data'[Opportunities Won Value USD]))))&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:32:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1739935#M36138</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-23T14:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX weighted average doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1740316#M36157</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When I try to fix the brackets in this formula I still get 1.2 as Total not 2.7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you've changed the first part of the formula. I thought it's the second DIVIDE part that produces a wrong result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 17:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1740316#M36157</guid>
      <dc:creator>PshemekFLK</dc:creator>
      <dc:date>2021-03-23T17:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX weighted average doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1751366#M36497</link>
      <description>&lt;P&gt;Can anyone give it a try? I still can't get to the right result&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 09:06:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-weighted-average-doesn-t-work/m-p/1751366#M36497</guid>
      <dc:creator>PshemekFLK</dc:creator>
      <dc:date>2021-03-29T09:06:36Z</dc:date>
    </item>
  </channel>
</rss>

