<?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: How to calculate ROY(Rest of Year) Hours in dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025366#M158902</link>
    <description>&lt;P&gt;There seems to be a problem in your logic, please see the dates it is returning. I guess you are trying to sum Hours until the end of Next year (Jun 2025) ?&amp;nbsp;&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;</description>
    <pubDate>Thu, 04 Jul 2024 14:35:58 GMT</pubDate>
    <dc:creator>miTutorials</dc:creator>
    <dc:date>2024-07-04T14:35:58Z</dc:date>
    <item>
      <title>How to calculate ROY(Rest of Year) Hours in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025351#M158900</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following requirement where i need to calculate ROY(Rest of Year Hours)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a week start date column and my calendar starts on First monday of July and ends in June.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this condition i need to calculate rest of year hours for the hours column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using below measure but its returning blank. basically what ever dates are finished i need not calculate the sum of those hours only the rest of Year.&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date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()), &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there any other method we can achieve this. Please help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025351#M158900</guid>
      <dc:creator>binayjethwa</dc:creator>
      <dc:date>2024-07-04T14:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate ROY(Rest of Year) Hours in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025363#M158901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433567" data-lia-user-login="binayjethwa" class="lia-mention lia-mention-user"&gt;binayjethwa&lt;/a&gt;&amp;nbsp;-Can you try the below measure&lt;/P&gt;&lt;P&gt;ROY Hours =&lt;BR /&gt;VAR CurrentDate = TODAY()&lt;BR /&gt;VAR EndOfYearDate = DATE(YEAR(CurrentDate), 6, 30)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Retain Dump'[Retain Hours]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Retain Dump',&lt;BR /&gt;'Retain Dump'[Date] &amp;gt; CurrentDate &amp;amp;&amp;amp;&lt;BR /&gt;'Retain Dump'[Date] &amp;lt;= EndOfYearDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025363#M158901</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-07-04T14:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate ROY(Rest of Year) Hours in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025366#M158902</link>
      <description>&lt;P&gt;There seems to be a problem in your logic, please see the dates it is returning. I guess you are trying to sum Hours until the end of Next year (Jun 2025) ?&amp;nbsp;&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;</description>
      <pubDate>Thu, 04 Jul 2024 14:35:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025366#M158902</guid>
      <dc:creator>miTutorials</dc:creator>
      <dc:date>2024-07-04T14:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate ROY(Rest of Year) Hours in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025371#M158903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;&amp;nbsp; , i am seeing the output as Blank , my date field is basically a week start date.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:39:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025371#M158903</guid>
      <dc:creator>binayjethwa</dc:creator>
      <dc:date>2024-07-04T14:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate ROY(Rest of Year) Hours in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025378#M158904</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433567" data-lia-user-login="binayjethwa" class="lia-mention lia-mention-user"&gt;binayjethwa&lt;/a&gt;&amp;nbsp;- Oh Ok, if you are using wstart date, please use the updated one below, check it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROY Hours =&lt;BR /&gt;VAR CurrentDate = TODAY()&lt;BR /&gt;VAR CurrentYear = YEAR(CurrentDate)&lt;BR /&gt;VAR EndOfYearDate =&lt;BR /&gt;IF(&lt;BR /&gt;CurrentDate &amp;gt; DATE(CurrentYear, 6, 30),&lt;BR /&gt;DATE(CurrentYear + 1, 6, 30),&lt;BR /&gt;DATE(CurrentYear, 6, 30)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Retain Dump'[Retain Hours]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Retain Dump',&lt;BR /&gt;'Retain Dump'[Week Start Date] &amp;gt; CurrentDate &amp;amp;&amp;amp;&lt;BR /&gt;'Retain Dump'[Week Start Date] &amp;lt;= EndOfYearDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:42:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-ROY-Rest-of-Year-Hours-in-dax/m-p/4025378#M158904</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-07-04T14:42:03Z</dc:date>
    </item>
  </channel>
</rss>

