<?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 only one matching month and year of other date column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-only-one-matching-month-and-year-of-other-date-column/m-p/3576078#M137870</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628437" data-lia-user-login="newlearnpbi123" class="lia-mention lia-mention-user"&gt;newlearnpbi123&lt;/a&gt;&amp;nbsp; You can create new column like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;any date = DATE(YEAR('Calendar'[Month-Year]),MONTH('Calendar'[Month-Year]),1 )&lt;BR /&gt;&lt;BR /&gt;Here we are creating new date column wheere year and month will ba taken from Year-Month column and Day will be 1. So they will be one date for each Month. You can keep Day as any other number between 0-28.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 10 Dec 2023 08:27:31 GMT</pubDate>
    <dc:creator>saurabhtd</dc:creator>
    <dc:date>2023-12-10T08:27:31Z</dc:date>
    <item>
      <title>Get only one matching month and year of other date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-only-one-matching-month-and-year-of-other-date-column/m-p/3575596#M137854</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I have two date column,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;one column has month-year and another column is weekend-dates, like below image&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to have only one matching month and year of the month column, like below&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the issue is starting of month and end of month sometimes present in previous month as highlighted in first image,&lt;BR /&gt;&lt;BR /&gt;can someone help me get the result of 2nd image, any date is fine as long it is only one date matching the month column, so i could use it in&amp;nbsp; my slicer.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 09 Dec 2023 14:29:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-only-one-matching-month-and-year-of-other-date-column/m-p/3575596#M137854</guid>
      <dc:creator>newlearnpbi123</dc:creator>
      <dc:date>2023-12-09T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get only one matching month and year of other date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-only-one-matching-month-and-year-of-other-date-column/m-p/3576078#M137870</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628437" data-lia-user-login="newlearnpbi123" class="lia-mention lia-mention-user"&gt;newlearnpbi123&lt;/a&gt;&amp;nbsp; You can create new column like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;any date = DATE(YEAR('Calendar'[Month-Year]),MONTH('Calendar'[Month-Year]),1 )&lt;BR /&gt;&lt;BR /&gt;Here we are creating new date column wheere year and month will ba taken from Year-Month column and Day will be 1. So they will be one date for each Month. You can keep Day as any other number between 0-28.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Dec 2023 08:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-only-one-matching-month-and-year-of-other-date-column/m-p/3576078#M137870</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-12-10T08:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get only one matching month and year of other date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-only-one-matching-month-and-year-of-other-date-column/m-p/3581130#M138132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628437" data-lia-user-login="newlearnpbi123" class="lia-mention lia-mention-user"&gt;newlearnpbi123&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can try this way:&lt;BR /&gt;Here is my sample date:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I use these DAXs below to create two new columns to&amp;nbsp;extract year and month:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Year = YEAR('Table'[Date])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Month = MONTH('Table'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I use this DAX to create a new table to achieve your purpose:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Slicer = 
SUMMARIZE(
    'Table',
    'Table'[Year],
    'Table'[Month],
    "slicer",
    MIN('Table'[Date])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 05:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-only-one-matching-month-and-year-of-other-date-column/m-p/3581130#M138132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-13T05:53:09Z</dc:date>
    </item>
  </channel>
</rss>

