<?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: Measure so Actual Hours are only applied for shifts this week in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945162#M153311</link>
    <description>&lt;P&gt;In the top right corner of my post if you click the 3 dots, I think you may see an option.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or it may be in the very top dropdown, either way could you let me know as well&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>Fri, 24 May 2024 00:27:48 GMT</pubDate>
    <dc:creator>aduguid</dc:creator>
    <dc:date>2024-05-24T00:27:48Z</dc:date>
    <item>
      <title>Measure so Actual Hours are only applied for shifts this week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3941972#M153256</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope everyone is well. Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to get this measure so it only sumed&amp;nbsp; the actual hours for the current week. The actuale end is the date that the appoinment occurred on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Actual Hours for this week = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&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;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('appointment'[Actual Hours]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'appointment'[Actual End]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt;&lt;SPAN&gt; { (&lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks and Kind Regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 May 2024 07:14:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3941972#M153256</guid>
      <dc:creator>Justin112</dc:creator>
      <dc:date>2024-05-23T07:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Measure so Actual Hours are only applied for shifts this week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3942772#M153271</link>
      <description>&lt;P&gt;If you join your appointment table from [Actual End] to a calender table [Date] column, it's just a matter of selecting the the [Week Ending] date from the calendar in a visual. Then the measure only needs to = SUM([Actual Hours])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of a calender table you could use.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calendar = 
VAR _today_date =        TODAY()  
VAR _fiscal_year =       YEAR(EDATE( _today_date, 6))
VAR _fiscal_year_start = DATE ( _fiscal_year - 1, 07, 01)
VAR _fiscal_year_end =   DATE ( _fiscal_year, 06, 30)

VAR _result = 
    ADDCOLUMNS
    (
        //CALENDARAUTO()   //range of dates is calculated automatically based on data in the model
        CALENDAR(_fiscal_year_start, _fiscal_year_end)
        , "Calendar Year Period End",   FORMAT([Date], "yyyy12")
        , "Calendar Year Period Start", FORMAT([Date], "yyyy01")
        , "Calendar Year Period",       FORMAT([Date], "yyyyMM")
        , "Calendar Year Quarter Nbr",  QUARTER([Date])
        , "Calendar Year Quarter",      FORMAT([Date], "\C\Yyyyy \Qq")
        , "Calendar Year Half",         FORMAT([Date], "\F\Yyyyy \H") &amp;amp; ROUNDUP(MONTH([Date]) / 6, 0)
        , "Calendar Year",              YEAR([Date])
        , "Day Name Short",             FORMAT([Date], "DDD")
        , "Day Name",                   FORMAT([Date], "DDDD")
        , "Day Of Week",                WEEKDAY([Date])  
        , "Day",                        DAY([Date])
        , "Fiscal Year Period End",     FORMAT(EDATE([Date], 6), "yyyy12")
        , "Fiscal Year Period Start",   FORMAT(EDATE([Date], 6), "yyyy01")
        , "Fiscal Year Period",         FORMAT(EDATE([Date], 6), "yyyyMM")
        , "Fiscal Year Quarter Nbr",    FORMAT(EDATE([Date], 6), "q")
        , "Fiscal Year Quarter",        FORMAT(EDATE([Date], 6), "\F\Yyyyy \Qq")
        , "Fiscal Year Half",           FORMAT(EDATE([Date], 6), "\F\Yyyyy \H") &amp;amp; ROUNDUP(MONTH(EDATE([Date], 6)) / 6, 0)
        , "Fiscal Year",                YEAR(EDATE([Date], 6))
        , "Is Current FY",              IF(YEAR(EDATE([Date], 6)) = _fiscal_year, 1, 0)
        , "Is Future",                  IF([Date] &amp;gt; _today_date, 1, 0)
        , "Month End",                  EOMONTH([Date], 0)
        , "Month Name Short",           FORMAT([Date], "MMM")
        , "Month Name",                 FORMAT([Date], "MMMM")
        , "Month Start",                DATE(YEAR([Date]), MONTH([Date]), 1)
        , "Month",                      MONTH([Date])
        , "Week Ending",                [Date] + 7 - WEEKDAY([Date], 1) // Saturday
        , "Week Starting",              [Date] - WEEKDAY([Date], 1) + 1 // Sunday
        , "Week of Month",              1 + WEEKNUM([Date]) - WEEKNUM( EOMONTH([Date], -1 ) + 1 )
        , "Week of Year",               WEEKNUM([Date])
        , "Week of Fiscal Year",        IF(MONTH([Date]) &amp;lt; 7
                                        , WEEKNUM([Date], 1) + (WEEKNUM(DATE(YEAR([Date]), 7, 1), 1) - 1)
                                        , WEEKNUM([Date], 1) - WEEKNUM(DATE(YEAR([Date]), 7, 1), 1) + 1)
    )

RETURN
_result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 09:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3942772#M153271</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-05-23T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure so Actual Hours are only applied for shifts this week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945148#M153308</link>
      <description>&lt;P&gt;Thanks for your help that worked on my end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 23:51:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945148#M153308</guid>
      <dc:creator>Justin_112</dc:creator>
      <dc:date>2024-05-23T23:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Measure so Actual Hours are only applied for shifts this week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945149#M153309</link>
      <description>&lt;P&gt;can you please mark my answer as the solution&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 23:54:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945149#M153309</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-05-23T23:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Measure so Actual Hours are only applied for shifts this week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945157#M153310</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I'm quite new to the forum, could you please advise how to mark it as a solution&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 00:07:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945157#M153310</guid>
      <dc:creator>Justin_112</dc:creator>
      <dc:date>2024-05-24T00:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Measure so Actual Hours are only applied for shifts this week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945162#M153311</link>
      <description>&lt;P&gt;In the top right corner of my post if you click the 3 dots, I think you may see an option.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or it may be in the very top dropdown, either way could you let me know as well&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>Fri, 24 May 2024 00:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-so-Actual-Hours-are-only-applied-for-shifts-this-week/m-p/3945162#M153311</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-05-24T00:27:48Z</dc:date>
    </item>
  </channel>
</rss>

