<?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: Help me to get the total number of hours employees worked. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-get-the-total-number-of-hours-employees-worked/m-p/3339804#M125332</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="590483" data-lia-user-login="Malsha" class="lia-mention lia-mention-user"&gt;Malsha&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems like you want to analyze records based on two date fields, you can take a look at the following blog start, end date part if helps:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882#:~:text=You%20have%20a%20%E2%80%9Cstart%20date%E2%80%9D%20and%20an%20%E2%80%9Cend%20date%E2%80%9D" target="_self"&gt;Before You Post, Read This: start, end date&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 02:26:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-20T02:26:36Z</dc:date>
    <item>
      <title>Help me to get the total number of hours employees worked.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-get-the-total-number-of-hours-employees-worked/m-p/3335608#M125088</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am new to Power BI &amp;amp; DAX. so I need a help to get the total hours of employees worked in weekdays, saturdays &amp;amp; sundays in my dataset.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Final datatable how I need to show in my power bi report should be like this. (as an example)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;One employee can work in multiple departments and they can have multiple job roles. they don't have one specific job role. as an example, Jon Bloggs (EMP ID - 8230 as in the above picture) can work as a cleaner in today morning at PR800 department and in the evening can work as a janitor in another department or a same department.&amp;nbsp;&lt;BR /&gt;So I need their total work hours by filtering by the job role and the department.&lt;BR /&gt;&lt;BR /&gt;Here is a picture of my data model.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is how I need to get the data to above columns.&lt;BR /&gt;Employee Name &amp;amp; EMP ID :- Employee Data table&lt;BR /&gt;Department :- Subunit table (Subunit ID)&lt;BR /&gt;Job Role :- Job Role table (Job Role Name)&lt;BR /&gt;Period :- Timesheet table (Timesheet start date / Timesheet end date)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to get the total worked hours for those columns by using &lt;STRONG&gt;Actual Duration&lt;/STRONG&gt; column in the Timesheet data table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use &lt;STRONG&gt;Duration&lt;/STRONG&gt; column to identify the week days and holidays. if there's a &lt;STRONG&gt;S &lt;/STRONG&gt;in the Duration column, it's a &lt;STRONG&gt;sick&lt;/STRONG&gt; leave.&amp;nbsp; if there's a &lt;STRONG&gt;H&amp;nbsp;&lt;/STRONG&gt;in the Duration column, it's a &lt;STRONG&gt;Holiday&lt;/STRONG&gt;.&amp;nbsp; if there's a date&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in the Duration column, it's a working day.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can you please help me to get this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 05:30:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-get-the-total-number-of-hours-employees-worked/m-p/3335608#M125088</guid>
      <dc:creator>Malsha</dc:creator>
      <dc:date>2023-07-18T05:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help me to get the total number of hours employees worked.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-get-the-total-number-of-hours-employees-worked/m-p/3339804#M125332</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="590483" data-lia-user-login="Malsha" class="lia-mention lia-mention-user"&gt;Malsha&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems like you want to analyze records based on two date fields, you can take a look at the following blog start, end date part if helps:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882#:~:text=You%20have%20a%20%E2%80%9Cstart%20date%E2%80%9D%20and%20an%20%E2%80%9Cend%20date%E2%80%9D" target="_self"&gt;Before You Post, Read This: start, end date&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 02:26:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-to-get-the-total-number-of-hours-employees-worked/m-p/3339804#M125332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-20T02:26:36Z</dc:date>
    </item>
  </channel>
</rss>

