<?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 calculate total number as month and years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-total-number-as-month-and-years/m-p/2688610#M80882</link>
    <description>&lt;P&gt;Hello any experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Urgent] Does any one know how to convert total number of month to year and month. My column "Month" as experience(time)&lt;/P&gt;&lt;P&gt;For example, I want to convert Months equal to 61 to become 5 Year 1 Month. I tried a lot of method such as quotient, those date/format function is not suitable and working. Month = QUOTIENT([month],365) &amp;amp; " Year " &amp;amp; QUOTIENT(MOD([month],365),30) &amp;amp; " Month "&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 06:01:53 GMT</pubDate>
    <dc:creator>Wilson_weisheng</dc:creator>
    <dc:date>2022-08-09T06:01:53Z</dc:date>
    <item>
      <title>How to calculate total number as month and years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-total-number-as-month-and-years/m-p/2688610#M80882</link>
      <description>&lt;P&gt;Hello any experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Urgent] Does any one know how to convert total number of month to year and month. My column "Month" as experience(time)&lt;/P&gt;&lt;P&gt;For example, I want to convert Months equal to 61 to become 5 Year 1 Month. I tried a lot of method such as quotient, those date/format function is not suitable and working. Month = QUOTIENT([month],365) &amp;amp; " Year " &amp;amp; QUOTIENT(MOD([month],365),30) &amp;amp; " Month "&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 06:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-total-number-as-month-and-years/m-p/2688610#M80882</guid>
      <dc:creator>Wilson_weisheng</dc:creator>
      <dc:date>2022-08-09T06:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total number as month and years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-total-number-as-month-and-years/m-p/2688762#M80885</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;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;&amp;nbsp;&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;Years and Months CC =
VAR _year =
    ROUNDDOWN ( DIVIDE ( 'Month'[Month], 12 ), 0 )
RETURN
    IF (
        _year &amp;lt;&amp;gt; 0,
        _year &amp;amp; "Year "
            &amp;amp; MOD ( 'Month'[Month], 12 ) &amp;amp; "Month",
        MOD ( 'Month'[Month], 12 ) &amp;amp; "Month"
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Aug 2022 06:30:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-total-number-as-month-and-years/m-p/2688762#M80885</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-09T06:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate total number as month and years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-total-number-as-month-and-years/m-p/2688808#M80887</link>
      <description>&lt;P&gt;Hi Mr.Kim&lt;/P&gt;&lt;P&gt;Thank you for your solution, Because I`m keep find youtube and website about converting number to month year but unable to found it solution. Now I`m able to solve my issue through your script.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 06:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-total-number-as-month-and-years/m-p/2688808#M80887</guid>
      <dc:creator>Wilson_weisheng</dc:creator>
      <dc:date>2022-08-09T06:48:40Z</dc:date>
    </item>
  </channel>
</rss>

