<?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 Excel function to DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2492036#M68653</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need some help converting an excel formula into DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel:&amp;nbsp;=DATE(YEAR(TODAY()),MONTH(TODAY())-[@[- Months]]+1,0)&lt;/P&gt;&lt;P&gt;- Months = is a selection with the month number values (1 thru 12)&lt;/P&gt;&lt;P&gt;Result should be: YYYY-DD&lt;/P&gt;&lt;P&gt;- Months&amp;nbsp; &amp;nbsp; Day&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-04&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-03&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-02&lt;BR /&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated. Been trying to convert this fucntion for a couple of days now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 00:29:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-04T00:29:10Z</dc:date>
    <item>
      <title>Excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2492036#M68653</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need some help converting an excel formula into DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel:&amp;nbsp;=DATE(YEAR(TODAY()),MONTH(TODAY())-[@[- Months]]+1,0)&lt;/P&gt;&lt;P&gt;- Months = is a selection with the month number values (1 thru 12)&lt;/P&gt;&lt;P&gt;Result should be: YYYY-DD&lt;/P&gt;&lt;P&gt;- Months&amp;nbsp; &amp;nbsp; Day&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-04&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-03&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-02&lt;BR /&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated. Been trying to convert this fucntion for a couple of days now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 00:29:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2492036#M68653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-04T00:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2492064#M68654</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , You can create a measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format(DATE(YEAR(TODAY()),MONTH(TODAY())-selectedvalues(month[month])+1,1), "YYYYMM")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format(DATE(YEAR(TODAY()),MONTH(TODAY())-selectedvalues(month[month])+1,1), "YYYYDD")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format(DATE(YEAR(TODAY()),MONTH(TODAY())-selectedvalues(month[month])+1,day(Today()) ), "YYYYMM")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format(DATE(YEAR(TODAY()),MONTH(TODAY())-selectedvalues(month[month])+1,day(Today()) ), "YYYYDD")&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 01:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2492064#M68654</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-04T01:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2492231#M68667</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new column.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result CC =
VAR _todaymonth =
    MONTH ( TODAY () )
VAR _todayyear =
    YEAR ( TODAY () )
VAR _condition = _todaymonth &amp;gt; 'Months Table'[@Months]
RETURN
    IF (
        _condition = TRUE (),
        (
            _todayyear &amp;amp; "-"
                &amp;amp; FORMAT ( _todaymonth - 'Months Table'[@Months], "00" )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 03:18:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2492231#M68667</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-05-04T03:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2493743#M68743</link>
      <description>&lt;P&gt;Thank you for your reply. I am going to give this a try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I create measure columns for all excel functions in Power BI?&lt;/P&gt;&lt;P&gt;Thank you again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 14:33:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-function-to-DAX/m-p/2493743#M68743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-04T14:33:22Z</dc:date>
    </item>
  </channel>
</rss>

