<?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: Incorrect Subtotal in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2760823#M85571</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 03:37:29 GMT</pubDate>
    <dc:creator>ikhwan_tokenomy</dc:creator>
    <dc:date>2022-09-12T03:37:29Z</dc:date>
    <item>
      <title>Incorrect Subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2754200#M85076</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I have a DAX for custom measure with the formula of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Prev Day User Asset USD Latest Rate = CALCULATE(sum('user daily asset'[amount_usd_latest_rate]),PREVIOUSDAY(Dates[Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The DAX will give result like below. Where the prev day value of each day is correct, but on the subtotal of the month, its showing the previous day record of the first date instead of the SUM of all the prev day value.&lt;BR /&gt;&lt;BR /&gt;How can this be fixed?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 02:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2754200#M85076</guid>
      <dc:creator>ikhwan_tokenomy</dc:creator>
      <dc:date>2022-09-09T02:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2754715#M85119</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353135" data-lia-user-login="ikhwan_tokenomy" class="lia-mention lia-mention-user"&gt;ikhwan_tokenomy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What should the logic be behind this measure? How do you want to aggregate? You've not shown this... And please always remember that one picture is worth a thousand words &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 08:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2754715#M85119</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-09-08T08:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2756915#M85261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've edited my question to show an example. Hope it is clearer now&lt;BR /&gt;&lt;BR /&gt;THanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 02:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2756915#M85261</guid>
      <dc:creator>ikhwan_tokenomy</dc:creator>
      <dc:date>2022-09-09T02:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2757357#M85298</link>
      <description>&lt;P&gt;Maybe this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[Prev Day User Asset USD Latest Rate] =
sumx(
    values ( Dates[Date] ),
    calculate (
        SUM( 'user daily asset'[amount_usd_latest_rate] ),
        PREVIOUSDAY( Dates[Date] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 07:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2757357#M85298</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-09-09T07:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2760823#M85571</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 03:37:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Subtotal/m-p/2760823#M85571</guid>
      <dc:creator>ikhwan_tokenomy</dc:creator>
      <dc:date>2022-09-12T03:37:29Z</dc:date>
    </item>
  </channel>
</rss>

