<?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: Trying To Implement Previous Month Totals But It Only Works For One Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2827414#M89933</link>
    <description>&lt;P&gt;I have a relationship already established between those two columns but perhaps &amp;nbsp;it has to do with the cardinality?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2022 16:26:38 GMT</pubDate>
    <dc:creator>Georgez96</dc:creator>
    <dc:date>2022-10-08T16:26:38Z</dc:date>
    <item>
      <title>Trying To Implement Previous Month Totals But It Only Works For One Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2820953#M89565</link>
      <description>&lt;P&gt;I'm trying to compare current month total expenses to the previous month total expenses. I'm using this to calculate that:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;previous month total expense = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Expenses&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Expenses&lt;/SPAN&gt;&lt;SPAN&gt;[Date of Transaction]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;())-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Expenses&lt;/SPAN&gt;&lt;SPAN&gt;[Date of Transaction]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()))&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This only works when I use the slicer on the right when its sliced by last 1 month from the current date but not a calendar month. Additionally, it also does not work when I use the Month slicer on the left. Note that the Month slicer is from a different calendar table that is already joined to dates from the slicer on the right. I want to use the month slicer so that I can view the previous month totals, not last month from the current date. Screenshots are down below, would appreciate the help.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Oct 2022 21:32:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2820953#M89565</guid>
      <dc:creator>Georgez96</dc:creator>
      <dc:date>2022-10-05T21:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Implement Previous Month Totals But It Only Works For One Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2821442#M89575</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="452182" data-lia-user-login="Georgez96" class="lia-mention lia-mention-user"&gt;Georgez96&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the relationship between two tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my test table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new calendar table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = ADDCOLUMNS(CALENDAR(DATE(2022,7,1),DATE(2022,9,30)),"Month",FORMAT([Date],"mmm"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relationship between two tables:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the month slicer to view the previous month totals:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&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>Thu, 06 Oct 2022 02:55:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2821442#M89575</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-10-06T02:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Implement Previous Month Totals But It Only Works For One Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2827414#M89933</link>
      <description>&lt;P&gt;I have a relationship already established between those two columns but perhaps &amp;nbsp;it has to do with the cardinality?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 16:26:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2827414#M89933</guid>
      <dc:creator>Georgez96</dc:creator>
      <dc:date>2022-10-08T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Implement Previous Month Totals But It Only Works For One Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2827479#M89937</link>
      <description>&lt;P&gt;Furthermore, it seems to work only when I use the slicer from last month to current date(ex: 9/08/2022 - 10/08/2022) but not a calendar month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 18:10:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2827479#M89937</guid>
      <dc:creator>Georgez96</dc:creator>
      <dc:date>2022-10-08T18:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Implement Previous Month Totals But It Only Works For One Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2829687#M90100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="452182" data-lia-user-login="Georgez96" class="lia-mention lia-mention-user"&gt;Georgez96&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share with me some screenshots of your data and relationships after hiding sensitive information?&lt;/P&gt;
&lt;P&gt;Thanks for your efforts &amp;amp; time in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 01:41:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-To-Implement-Previous-Month-Totals-But-It-Only-Works-For/m-p/2829687#M90100</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-10-10T01:41:28Z</dc:date>
    </item>
  </channel>
</rss>

