<?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 how to transform month and years as numbers to exploitable periods in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-transform-month-and-years-as-numbers-to-exploitable/m-p/2843958#M90925</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have data with year and month in separate columns in number format, I would like to exploit those rather than the invoicing date field (for sales cutoff consideration).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How can this be achieved&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a solution I found suggested in this topice&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Converting-from-Month-Name-and-Year-to-Date/m-p/401471" target="_blank"&gt;Solved: Converting from Month Name and Year to Date - Microsoft Power BI Community&lt;/A&gt;&amp;nbsp; which is to create these 2 additional columns:&lt;/P&gt;&lt;PRE&gt;MonthNum = SWITCH([Month],"January",1,"February",2,"March",3)

Date = EOMONTH(DATE([Year],[MonthNum],1),0)&lt;/PRE&gt;&lt;P&gt;But I have the following result&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;So I have changed my year and month columns from number to text format but that didn't make adifference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Oct 2022 20:21:06 GMT</pubDate>
    <dc:creator>debutant</dc:creator>
    <dc:date>2022-10-15T20:21:06Z</dc:date>
    <item>
      <title>how to transform month and years as numbers to exploitable periods</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-transform-month-and-years-as-numbers-to-exploitable/m-p/2843958#M90925</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have data with year and month in separate columns in number format, I would like to exploit those rather than the invoicing date field (for sales cutoff consideration).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How can this be achieved&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a solution I found suggested in this topice&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Converting-from-Month-Name-and-Year-to-Date/m-p/401471" target="_blank"&gt;Solved: Converting from Month Name and Year to Date - Microsoft Power BI Community&lt;/A&gt;&amp;nbsp; which is to create these 2 additional columns:&lt;/P&gt;&lt;PRE&gt;MonthNum = SWITCH([Month],"January",1,"February",2,"March",3)

Date = EOMONTH(DATE([Year],[MonthNum],1),0)&lt;/PRE&gt;&lt;P&gt;But I have the following result&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;So I have changed my year and month columns from number to text format but that didn't make adifference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 20:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-transform-month-and-years-as-numbers-to-exploitable/m-p/2843958#M90925</guid>
      <dc:creator>debutant</dc:creator>
      <dc:date>2022-10-15T20:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to transform month and years as numbers to exploitable periods</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-transform-month-and-years-as-numbers-to-exploitable/m-p/2843967#M90928</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the most simple is to create a date table with date, month year etc..; and link it to your fact table&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 20:33:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-transform-month-and-years-as-numbers-to-exploitable/m-p/2843967#M90928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-15T20:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to transform month and years as numbers to exploitable periods</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-transform-month-and-years-as-numbers-to-exploitable/m-p/2845319#M91040</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="452894" data-lia-user-login="debutant" class="lia-mention lia-mention-user"&gt;debutant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your dax , i think there is no problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my test dax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = EOMONTH( DATE([Year],[Month],1) ,  0)&lt;/LI-CODE&gt;
&lt;P&gt;The result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 02:05:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-transform-month-and-years-as-numbers-to-exploitable/m-p/2845319#M91040</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-10-17T02:05:30Z</dc:date>
    </item>
  </channel>
</rss>

