<?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 % of Year completion based on days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/932265#M9596</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need Dax formula to calculate the Days in the year which is completed. Example : 2020 has 365 and as of today we have completed 43 days in year. I need a formula in DAX to calculate =43/365 =12 % of the days in the current year is completed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My below formula gives me days completed in a given month&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Ex: Below one gives me the Rate of Month completion w r t Days&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE (DAY( TODAY () ), DAY ( LASTDATE ( '[Date]) ), 0 )*100,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL ( 'Date ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YEAR ( Date) = YEAR ( TODAY () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; MONTH ( Date ) = MONTH ( TODAY () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; DAY ( Date ) = DAY ( TODAY () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Feb 2020 19:43:54 GMT</pubDate>
    <dc:creator>smshetty</dc:creator>
    <dc:date>2020-02-13T19:43:54Z</dc:date>
    <item>
      <title>How to calculate % of Year completion based on days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/932265#M9596</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need Dax formula to calculate the Days in the year which is completed. Example : 2020 has 365 and as of today we have completed 43 days in year. I need a formula in DAX to calculate =43/365 =12 % of the days in the current year is completed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My below formula gives me days completed in a given month&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Ex: Below one gives me the Rate of Month completion w r t Days&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE (DAY( TODAY () ), DAY ( LASTDATE ( '[Date]) ), 0 )*100,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL ( 'Date ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YEAR ( Date) = YEAR ( TODAY () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; MONTH ( Date ) = MONTH ( TODAY () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; DAY ( Date ) = DAY ( TODAY () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Feb 2020 19:43:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/932265#M9596</guid>
      <dc:creator>smshetty</dc:creator>
      <dc:date>2020-02-13T19:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of Year completion based on days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/932620#M9602</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="154874" data-lia-user-login="smshetty" class="lia-mention lia-mention-user"&gt;smshetty&lt;/a&gt;&amp;nbsp;Please try below measure to get the percentage&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _currentdate = SELECTEDVALUE(Test[Date])
VAR _basedate = DATE(YEAR(_currentdate),1,1)
VAR _days = DATEDIFF(_basedate,_currentdate,DAY)
RETURN DIVIDE(_days,365,0)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Feb 2020 03:51:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/932620#M9602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-14T03:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of Year completion based on days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/932750#M9606</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="154874" data-lia-user-login="smshetty" class="lia-mention lia-mention-user"&gt;smshetty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Date Table (Master Calendar) with a column for day number, would be helpful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 07:11:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/932750#M9606</guid>
      <dc:creator>nhoward</dc:creator>
      <dc:date>2020-02-14T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of Year completion based on days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/1035831#M13773</link>
      <description>&lt;P&gt;Can you help me how to get this for my measure?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 08:22:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-Year-completion-based-on-days/m-p/1035831#M13773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-20T08:22:09Z</dc:date>
    </item>
  </channel>
</rss>

