<?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 Problem with SumX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2350822#M59651</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a measure that is simply multiplying the sold QTY with the weight of each item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure is working fine on some Styles(items), but on other styles there is no calculation, see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems it has something to do with my time dimension, which I do not understand, bacause the item dimension has no relation to the time dimension. But if I choose "All" in B1 instead og "2021", the style at the bottom is calculation correct.&lt;/P&gt;&lt;P&gt;But that is not a solution, I need to choose different years in B1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help with a measure working correct? See my measure below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New measure:=&lt;/P&gt;&lt;P&gt;VAR _weight= CALCULATE(&lt;BR /&gt;AVERAGEX(values(vDIM_Items[ItemID]),[NetWeight_])&lt;BR /&gt;, REMOVEFILTERS(DIM_Time))&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;sumx(values(vDIM_Items[ItemID]),[QTY]*_weight)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 10:16:53 GMT</pubDate>
    <dc:creator>Dennis_Pedersen</dc:creator>
    <dc:date>2022-02-21T10:16:53Z</dc:date>
    <item>
      <title>Problem with SumX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2350822#M59651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a measure that is simply multiplying the sold QTY with the weight of each item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure is working fine on some Styles(items), but on other styles there is no calculation, see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems it has something to do with my time dimension, which I do not understand, bacause the item dimension has no relation to the time dimension. But if I choose "All" in B1 instead og "2021", the style at the bottom is calculation correct.&lt;/P&gt;&lt;P&gt;But that is not a solution, I need to choose different years in B1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help with a measure working correct? See my measure below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New measure:=&lt;/P&gt;&lt;P&gt;VAR _weight= CALCULATE(&lt;BR /&gt;AVERAGEX(values(vDIM_Items[ItemID]),[NetWeight_])&lt;BR /&gt;, REMOVEFILTERS(DIM_Time))&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;sumx(values(vDIM_Items[ItemID]),[QTY]*_weight)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 10:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2350822#M59651</guid>
      <dc:creator>Dennis_Pedersen</dc:creator>
      <dc:date>2022-02-21T10:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SumX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2350931#M59665</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150977" data-lia-user-login="Dennis_Pedersen" class="lia-mention lia-mention-user"&gt;Dennis_Pedersen&lt;/a&gt; , try with these small changes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;New measure:=&lt;/P&gt;
&lt;P&gt;VAR _weight= &lt;BR /&gt;AVERAGEX(values(vDIM_Items[ItemID]),CALCULATE([NetWeight_])&lt;BR /&gt;, REMOVEFILTERS(DIM_Time))&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;sumx(values(vDIM_Items[ItemID]),CALCULATE([QTY]*_weight))&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 11:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2350931#M59665</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-21T11:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SumX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2351015#M59670</link>
      <description>&lt;P&gt;Thank you amitchandak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the same result with no calculation on the last style. I really don't get it bacause the sold Qty is calculated correct on that style also, so it should be possible to calculate the weight also??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I changed you formula a bit:(before it said too many arguments for averageX function)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR _weight=&lt;BR /&gt;AVERAGEX(values(vDIM_Items[ItemID]),CALCULATE([NetWeight_]&lt;BR /&gt;, REMOVEFILTERS(DIM_Time)))&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;sumx(values(vDIM_Items[ItemID]),CALCULATE([QTY]*_weight))&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 11:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2351015#M59670</guid>
      <dc:creator>Dennis_Pedersen</dc:creator>
      <dc:date>2022-02-21T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SumX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2351060#M59675</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150977" data-lia-user-login="Dennis_Pedersen" class="lia-mention lia-mention-user"&gt;Dennis_Pedersen&lt;/a&gt; ,&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 12:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2351060#M59675</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-21T12:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SumX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2352549#M59777</link>
      <description>&lt;P&gt;Hi amitchandak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you - I have sent you a PM&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:41:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2352549#M59777</guid>
      <dc:creator>Dennis_Pedersen</dc:creator>
      <dc:date>2022-02-22T06:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SumX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2373842#M61039</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150977" data-lia-user-login="Dennis_Pedersen" class="lia-mention lia-mention-user"&gt;Dennis_Pedersen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please tell me whether your problem has been solved?&lt;/P&gt;
&lt;P&gt;If not, please provide sanitized sample data that fully covers your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 01:37:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-SumX/m-p/2373842#M61039</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-03-04T01:37:37Z</dc:date>
    </item>
  </channel>
</rss>

