<?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: Previous Month goes blank on some Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Month-goes-blank-on-some-Month/m-p/2362890#M60438</link>
    <description>&lt;P&gt;Thank you Greg, it is solved.&lt;/P&gt;&lt;P&gt;I marked the table which contains date as date table, and the result is ok now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Feb 2022 13:37:13 GMT</pubDate>
    <dc:creator>bimagty</dc:creator>
    <dc:date>2022-02-27T13:37:13Z</dc:date>
    <item>
      <title>Previous Month goes blank on some Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Month-goes-blank-on-some-Month/m-p/2362833#M60434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have problem with previous month dax. I want to show last month sales revenue based on the slicer, but when I select year of 2022 and month in February, this 'last month' card should display the sum of revenue in January but it shows ((blank)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to change the year to 2021 and it worked fine.&lt;/P&gt;&lt;P&gt;Below the captures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have 2 tables, 1 table is for data and another 1 for calendar, below are my codes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;last month = CALCULATE (
    SUM('190222'[daily_revenue]),
    PREVIOUSMONTH ( 'Calendar'[Date].[Date] ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the table relationship:&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;This is the result when I tried to change the year to 2021:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help if there is something that I skipped to make it error. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 12:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Month-goes-blank-on-some-Month/m-p/2362833#M60434</guid>
      <dc:creator>bimagty</dc:creator>
      <dc:date>2022-02-27T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month goes blank on some Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Month-goes-blank-on-some-Month/m-p/2362872#M60437</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="362628" data-lia-user-login="bimagty" class="lia-mention lia-mention-user"&gt;bimagty&lt;/a&gt;&amp;nbsp;Well, make sure you have a separate date table and that it is marked as a date table. Also, you don't need the .[Date] portion. Alternatively, just say no to DAX time "intelligence" functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 13:06:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Month-goes-blank-on-some-Month/m-p/2362872#M60437</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-02-27T13:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month goes blank on some Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Month-goes-blank-on-some-Month/m-p/2362890#M60438</link>
      <description>&lt;P&gt;Thank you Greg, it is solved.&lt;/P&gt;&lt;P&gt;I marked the table which contains date as date table, and the result is ok now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 13:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Month-goes-blank-on-some-Month/m-p/2362890#M60438</guid>
      <dc:creator>bimagty</dc:creator>
      <dc:date>2022-02-27T13:37:13Z</dc:date>
    </item>
  </channel>
</rss>

