<?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: Custom Month Start Date and End Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1213098#M19560</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please any help with my question?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 22:02:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-09T22:02:14Z</dc:date>
    <item>
      <title>Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1199485#M19138</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a description of the date slicer i need on my report.&lt;/P&gt;&lt;P&gt;I have three customers using a report with customer ID and date as slicers on the report page. Customer 1 and 2 use a calendar month for thier transactions whilst customer 3 uses a custom production month. Example the month of June for Customer 1 and 2 is June 1st 2020-June 30th 2020 whilst for customer 3 is May 25th 2020 to June 26th 2020. How do i modify my date table to achive this ensuring that if customer 3 set the upper bound of the date slicer to May 25th and lower bound to June 26th, the data in the matrix visualization will arrange in this sort order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 05:17:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1199485#M19138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-03T05:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1200688#M19174</link>
      <description>&lt;P&gt;I may have a way to expand your thinking on how this could be achieved. However, there are so many ways somehting like this could be acheived through DAX im sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within my date table I have different filters for different occasions. If I had a customer I had to report to which calls for specific filters I would attempt to create something specifically for them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an example I have created calculated columns within my date table to identify "This Month", "Last Month", "Prior Month" so I was able to create ease slicers for the folks reviewing the reporting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case you may be able to find a pattern for you customers and create a calculated column to do the same.&lt;/P&gt;&lt;P&gt;Right off the bat Im thiking somehting along the lines of the following could work for your case :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Customer #3 Months = 
IF( DAY([Date])&amp;gt;25 , MONTH([Date]) + 1 , MONTH([Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this you could now create a filter based off of those months. Of course you then could create additional logic to return the month name that the month values are associated with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this would work for you. Also if you come up with an alternative, let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enjoy!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 15:22:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1200688#M19174</guid>
      <dc:creator>AlexAlberga727</dc:creator>
      <dc:date>2020-07-03T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1200826#M19185</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This calculated coulmn works fine from January to November. In December, Customer 3 Month becomes November 26th to Decemebr 31st. Is there a way this can also be catered for?&lt;/P&gt;&lt;PRE&gt;Customer #3 Months = 
IF( DAY([Date])&amp;gt;25 , MONTH([Date]) + 1 , MONTH([Date]))&lt;/PRE&gt;&lt;P&gt;Also please&amp;nbsp; assit me with the logic to month name and year based for the filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 17:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1200826#M19185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-03T17:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1213098#M19560</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please any help with my question?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 22:02:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1213098#M19560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-09T22:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218582#M19728</link>
      <description>&lt;P&gt;Im assuming Jan of the next year would need to be December 26th to Jan 25th, correct?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 13:43:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218582#M19728</guid>
      <dc:creator>AlexAlberga727</dc:creator>
      <dc:date>2020-07-13T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218600#M19732</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;January next year will be January 1st to January 25th and December this year will be November 26th to December 31st.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 13:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218600#M19732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-13T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218608#M19733</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this instead for those december days &amp;gt; 25.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Customer #3 Months = 
IF( MONTH(dDateTable[Date]) = 12 &amp;amp;&amp;amp; DAY( dDateTable[Date] ) &amp;gt; 25 , 1 ,
IF( DAY(dDateTable[Date]) &amp;gt; 25 , MONTH( dDateTable[Date] ) + 1 , MONTH( dDateTable[Date] )))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Let me know if that works. Sorry for the late reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In regards to how you can filter by month name, opposed to a number ... I tried a handful of attempts trying to utilize the FORMAT function as well as even concatenating the month number to try and make a date to then utilize the format function more effectively, and I was not able to get that working. However, you can always create a table with values 1-12 with their associated month names and enter that into your data model to then bring in that relationship. This would work - However, I was trying to find a solution within DAX. I'm sure there is a way to do so but it may be just easier to create the table as I mentioned above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anywho - Hope this helps, Enjoy!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 14:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218608#M19733</guid>
      <dc:creator>AlexAlberga727</dc:creator>
      <dc:date>2020-07-13T14:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218623#M19735</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just saw your reply. Change the 1 to 12 in the first IF statement to get your expected results.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 14:04:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1218623#M19735</guid>
      <dc:creator>AlexAlberga727</dc:creator>
      <dc:date>2020-07-13T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1301126#M22536</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks, this gave the expected results.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1301126#M22536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T13:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1322583#M23274</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190980" data-lia-user-login="AlexAlberga727" class="lia-mention lia-mention-user"&gt;AlexAlberga727&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the month numbers correctly, but i am stuck as to how to apply it on my visuals. I inserted the table but is not working as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 11:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1322583#M23274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-25T11:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Month Start Date and End Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1322825#M23283</link>
      <description>&lt;P&gt;What fields are you using to create your visual?&lt;/P&gt;&lt;P&gt;Are you using the column we created?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Share a screen shot of what is happening when you do.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 13:19:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Month-Start-Date-and-End-Date/m-p/1322825#M23283</guid>
      <dc:creator>AlexAlberga727</dc:creator>
      <dc:date>2020-08-25T13:19:48Z</dc:date>
    </item>
  </channel>
</rss>

