<?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 dax returning balnk in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664777#M178656</link>
    <description>&lt;P&gt;Can you share some samples of your tables to let me make some tests on my side ?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 11:16:20 GMT</pubDate>
    <dc:creator>Cookistador</dc:creator>
    <dc:date>2025-04-23T11:16:20Z</dc:date>
    <item>
      <title>Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664381#M178638</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;My pas rate Dax&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;Pass Rate =&lt;BR /&gt;Var pas = SUM(QA_Main_AllFG[Check_QTY])&lt;BR /&gt;Var Def = SUM(QA_Main_AllFG[Defect_QTY])&lt;BR /&gt;RETURN&lt;BR /&gt;DIVIDE(pas,(pas+Def),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;MY previous month dax&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;Pre_Month = CALCULATE(&lt;BR /&gt;[Pass Rate],&lt;BR /&gt;PREVIOUSMONTH('QA_Main_AllFG'[Date]))&lt;BR /&gt;&lt;BR /&gt;previous month is&amp;nbsp; showing blank&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to solve the issues&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 07:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664381#M178638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-23T07:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664449#M178642</link>
      <description>&lt;P&gt;Do you have a calendar table in your model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the clues you shared with us, I think the issue is comming from&lt;BR /&gt;the fact that Time intelligence functions need a continuous range of dates to correctly identify periods like the "previous month."&lt;/P&gt;&lt;P&gt;If your 'QA_Main_AllFG'[Date] column is just a column within your fact table and not related to a dedicated date table, or if your date table is not correctly set up or marked as a date table, Power BI cannot reliably determine what the "previous month" is in the context of your visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 07:29:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664449#M178642</guid>
      <dc:creator>Cookistador</dc:creator>
      <dc:date>2025-04-23T07:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664728#M178654</link>
      <description>&lt;P&gt;&lt;SPAN&gt;QA_Main_AllFG'[Date]&amp;nbsp; it is data entry date column. I have a cematic date table in my power BI service.I have connect it and try it but result showing blank also&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 10:42:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664728#M178654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-23T10:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664777#M178656</link>
      <description>&lt;P&gt;Can you share some samples of your tables to let me make some tests on my side ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 11:16:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4664777#M178656</guid>
      <dc:creator>Cookistador</dc:creator>
      <dc:date>2025-04-23T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4669954#M178868</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Community. Also thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400842" data-lia-user-login="Cookistador" class="lia-mention lia-mention-user"&gt;Cookistador&lt;/a&gt;&amp;nbsp; for your input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your issue with the&amp;nbsp;PREVIOUSMONTH&amp;nbsp;function returning blank values in your DAX measure, this behavior is typically caused by the way time intelligence functions interact with date contexts in your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please following these steps, the&amp;nbsp;PREVIOUSMONTH&amp;nbsp;function will correctly identify the prior month based on your calendar table, and your&amp;nbsp;Pre_Month&amp;nbsp;measure will return expected, non-blank values.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Ensure you have a dedicated calendar (date) table in your model that covers the entire date range you need. This table must have a continuous range of dates without gaps.&lt;/LI&gt;
&lt;LI&gt;In Power BI or Fabric, mark your calendar table as a Date table. This step is essential for the time intelligence functions like&amp;nbsp;PREVIOUSMONTH&amp;nbsp;to work properly.&lt;BR /&gt;You can do this by selecting the calendar table, then going to the Modeling tab and choosing “Mark as Date Table” and selecting the date column.&lt;/LI&gt;
&lt;LI&gt;Modify your&amp;nbsp;Pre_Month&amp;nbsp;measure to reference the date column from your calendar table,&amp;nbsp;not&amp;nbsp;the date column in your fact table. For example:&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI-CODE lang="markup"&gt;Pre_Month =  
CALCULATE(  
    [Pass Rate],  
    PREVIOUSMONTH('Calendar'[Date])  
)  &lt;/LI-CODE&gt;
&lt;UL&gt;
&lt;LI&gt;There must be a one-to-many (1:* ) relationship between&amp;nbsp;'Calendar'[Date]&amp;nbsp;and&amp;nbsp;'QA_Main_AllFG'[Date], with the filter direction from calendar table to fact table. Also make sure all date filters, slicers, and visuals are using the calendar table’s date columns to maintain a consistent and reliable filter context.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you continue to face issues, please provide sample data of your model relationships so we can assist further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this will resolve your issue, if you need any further assistance, feel free to reach out.&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please give us Kudos and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 05:30:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4669954#M178868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-28T05:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4676686#M179101</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 04:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4676686#M179101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-02T04:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4681258#M179300</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/734207" target="_blank"&gt;@mdmasumssg&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 04:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4681258#M179300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-06T04:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month dax returning balnk</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4686288#M179491</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 09:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-month-dax-returning-balnk/m-p/4686288#M179491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-09T09:16:08Z</dc:date>
    </item>
  </channel>
</rss>

