<?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: Get sum of sales for last day of each month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1531011#M30047</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , I have used lastnonblankvalue too in the video that can be used &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can also refer : &lt;A href="https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak" target="_blank"&gt;https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 12:41:56 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-12-03T12:41:56Z</dc:date>
    <item>
      <title>Get sum of sales for last day of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1530281#M30008</link>
      <description>&lt;P&gt;Need help ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="122869" data-lia-user-login="Mich_J" class="lia-mention lia-mention-user"&gt;Mich_J&lt;/a&gt;&amp;nbsp;&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;i need to derive sum of sales carried over against each product for &lt;STRONG&gt;last day&lt;/STRONG&gt; of &lt;STRONG&gt;each month&lt;/STRONG&gt; . To clairfy i just need sales for last day(only 1 day not the whole month) of each month for last 12 months .&lt;/P&gt;&lt;P&gt;on any given day i might have many products sold&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. in this ex i have 2 products and the amount sold , i need to show a sum of product for last day of each last 12 months . i do have calender table , with months , eom , isweekday&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28 May 2020&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28 May 2020&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29 May 2020&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29 May 2020&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29 Jun 2020&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29 Jun 2020&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30 Jun 2020&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30 Jun 2020&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 03 Dec 2020 07:02:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1530281#M30008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-03T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get sum of sales for last day of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1530287#M30009</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , use closingbalancemonth(this month end) &lt;/P&gt;
&lt;P&gt;openingbalancemonth (last month end)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Discussed in details - &lt;A href="https://www.youtube.com/watch?v=yPQ9UV37LOU" target="_blank"&gt;https://www.youtube.com/watch?v=yPQ9UV37LOU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Opening -&lt;A href="https://www.youtube.com/watch?v=6lzYOXI5wfo" target="_blank"&gt;https://www.youtube.com/watch?v=6lzYOXI5wfo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 07:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1530287#M30009</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-03T07:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get sum of sales for last day of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1530814#M30032</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; Thanks , video was helpful&amp;nbsp; . However i noticed that this only&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLOSINGBALANCEMONTH only gets data if the sales table has data for month end . what if my last day of sales was 28th Aug 2020 instead of 31st Aug 2020 , i don't see any results for the month of Aug . Keen to hear your thoughts&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Dec 2020 11:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1530814#M30032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-03T11:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get sum of sales for last day of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1531011#M30047</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , I have used lastnonblankvalue too in the video that can be used &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can also refer : &lt;A href="https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak" target="_blank"&gt;https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 12:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1531011#M30047</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-03T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get sum of sales for last day of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1531735#M30076</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, I provide you with a solution with more flexibilities. You might want to refer to &lt;A href="https://1drv.ms/u/s!AsDP3LYI8umsgUYnVEOJkXxuAE7B?e=ZeckLw" target="_blank" rel="noopener"&gt;&lt;EM&gt;&lt;STRONG&gt;the attached pbix file&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt; for details.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:39:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1531735#M30076</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-12-03T19:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get sum of sales for last day of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1538387#M30252</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&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; i do get the correct data now . Much appreciated .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i do have a follow-up question - if i want to compare this months end sales v/s 6 months ago , i use the below formula but this dosen't seem to be working&amp;nbsp;&lt;/P&gt;&lt;P&gt;last 6 months ago = calculate (Sum(total sales),DateAdd(date,-6,MONTH))&lt;/P&gt;&lt;P&gt;Any ideas on how to get this comparions Today - last 6 months ago&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 09:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-sum-of-sales-for-last-day-of-each-month/m-p/1538387#M30252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-08T09:58:46Z</dc:date>
    </item>
  </channel>
</rss>

