<?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 by week not giving right answer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2914007#M95310</link>
    <description>&lt;P&gt;what error do you get? And if would be good if you could also share the header of your data table, so to avoid spelling issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 00:48:56 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2022-11-18T00:48:56Z</dc:date>
    <item>
      <title>sumx by week not giving right answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2913886#M95300</link>
      <description>&lt;P&gt;hello everyone ,&lt;BR /&gt;i have a calculation&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;measure =&lt;BR /&gt;VAR value = sum([total])&lt;BR /&gt;RETURN&lt;BR /&gt;sumx(values(week nb),if ( [gross profit] &amp;gt; 0 , value , 0))&lt;BR /&gt;&lt;BR /&gt;and i have a week slicer .&lt;BR /&gt;&lt;BR /&gt;if i slect week 1, value was 10 but we were on a loss, so gross profit was negative so result of value gives 0&amp;nbsp;&lt;BR /&gt;if i select week 2, value was 20 ,we were on profit, so gross profit was positive so result gives value 20&lt;BR /&gt;&lt;BR /&gt;now if i select week 1 and week 2 together i am not getting getting 20 , iam getting 30. how can i solve this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 22:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2913886#M95300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-17T22:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: sumx by week not giving right answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2913932#M95302</link>
      <description>&lt;DIV&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Assumimg [Total] is a column, try this&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;measure =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VALUES(week nb),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF (&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;[gross profit]&amp;gt;0,&amp;nbsp;&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;CALCULATE(SUM([Total]),&amp;nbsp;&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;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Nov 2022 23:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2913932#M95302</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-17T23:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: sumx by week not giving right answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2913965#M95307</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;thank you for your response unfortunately doesnt work&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 00:01:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2913965#M95307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-18T00:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: sumx by week not giving right answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2914007#M95310</link>
      <description>&lt;P&gt;what error do you get? And if would be good if you could also share the header of your data table, so to avoid spelling issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 00:48:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2914007#M95310</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-18T00:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: sumx by week not giving right answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2914071#M95317</link>
      <description>&lt;P&gt;No error just didnt add up correct but i found a turn around and was able to fix my issue by adding the if to another measure formula that directly affect my formula similar to your suggestion,thank you for your time and help&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 01:48:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2914071#M95317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-18T01:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: sumx by week not giving right answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2914088#M95319</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Glad to hear that.&amp;nbsp; Solving the problem by oneself with only some hint from others would be the best outcome.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Nov 2022 01:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-by-week-not-giving-right-answer/m-p/2914088#M95319</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-18T01:57:48Z</dc:date>
    </item>
  </channel>
</rss>

