<?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: Sum pending values with based on the previous month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2971876#M99364</link>
    <description>&lt;P&gt;Is there any reason you can't do SUM(January) - SUM(February)?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 21:53:09 GMT</pubDate>
    <dc:creator>vicky_</dc:creator>
    <dc:date>2022-12-15T21:53:09Z</dc:date>
    <item>
      <title>Sum pending values with based on the previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2971682#M99351</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a measure that shows me the sum of outstanding amounts in the current month based on the amounts that occurred in the previous month. I need to put this total amount on the card. Can you help me, please?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:18:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2971682#M99351</guid>
      <dc:creator>flaviobdsti</dc:creator>
      <dc:date>2022-12-15T19:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum pending values with based on the previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2971876#M99364</link>
      <description>&lt;P&gt;Is there any reason you can't do SUM(January) - SUM(February)?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 21:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2971876#M99364</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2022-12-15T21:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum pending values with based on the previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2972232#M99391</link>
      <description>&lt;P&gt;It doesn't work because Jan (last month) and Feb (current month) are measured:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Current month = CALCULATE(SUM(BillsReceive[value_document]),GROUPBY(dimIDJ,dimIDJ[IDJ]))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Last month&amp;nbsp;= CALCULATE([Current month],DATEADD(dimCalendar[Date],-1,MONTH))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I get the desired result only when I add the measures in a table and configure a filter on the screen for the current month (feb) = blank()&lt;/P&gt;&lt;P&gt;But I need to be able to do this in a measure to add to a card&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 02:26:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2972232#M99391</guid>
      <dc:creator>flaviobdsti</dc:creator>
      <dc:date>2022-12-16T02:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sum pending values with based on the previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2972970#M99443</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369067" data-lia-user-login="flaviobdsti" class="lia-mention lia-mention-user"&gt;flaviobdsti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;JAN = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),MONTH([Date])=1&amp;amp;&amp;amp;[ID]=SELECTEDVALUE('Table'[ID])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;FEB = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),MONTH([Date])=2&amp;amp;&amp;amp;[ID]=SELECTEDVALUE('Table'[ID])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SUMX(FILTER(ALL('Table'),[FEB]=BLANK()&amp;amp;&amp;amp;MONTH([Date])=1),[JAN])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:52:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2972970#M99443</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-12-16T08:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum pending values with based on the previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2974095#M99521</link>
      <description>&lt;P&gt;Thanks a lot for the precious help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 20:02:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-pending-values-with-based-on-the-previous-month/m-p/2974095#M99521</guid>
      <dc:creator>flaviobdsti</dc:creator>
      <dc:date>2022-12-16T20:02:46Z</dc:date>
    </item>
  </channel>
</rss>

