<?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 do I calculate the total working time per day, per week, per year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3555123#M136818</link>
    <description>&lt;P&gt;To find the first time of the day per technician:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Min Time StartArbeid = MIN(PTS_Z14IT_CRM_HR_DAT[StartArbeid])&lt;/LI&gt;&lt;LI&gt;Min Time StartReisHeen = MINX(FILTER(PTS_Z14IT_CRM_HR_DAT,PTS_Z14IT_CRM_HR_DAT[StartReisHeen] &amp;lt;&amp;gt; 0 ),PTS_Z14IT_CRM_HR_DAT[StartReisHeen])&lt;/LI&gt;&lt;LI&gt;Min Time = MINX({[Min Time StartReisHeen],[Min Time StartArbeid]},[Value])&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To find the last time of the day per technician:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Max Time TijdEindeArbeid = MAX(PTS_Z14IT_CRM_HR_DAT[EindeArbeid])&lt;/LI&gt;&lt;LI&gt;Max Time EindeReisTerug = MAX(PTS_Z14IT_CRM_HR_DAT[EindeReisTerug])&lt;/LI&gt;&lt;LI&gt;Max Time = MAXX({[Max Time EindeReisTerug],[Max Time TijdEindeArbeid]},[Value])&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To find the total working time per day per technician:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Totale tijd min = CALCULATE(DATEDIFF([Min Time],[Max Time],MINUTE)) //&lt;/LI&gt;&lt;LI&gt;Totale tijd uur = [Totale tijd min]/60&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the ‘Totale tijd min’ provides the total working time in minutes per day. When I place this as a value in a matrix table, I get an incorrect calculation of the total time. Also, when I try to see the total working time per week, I do not get accurate results.&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>Mon, 27 Nov 2023 21:22:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-27T21:22:43Z</dc:date>
    <item>
      <title>how do I calculate the total working time per day, per week, per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3553708#M136743</link>
      <description>&lt;P&gt;I have a table with different times for different technicians each day. I would like to calculate the total worked time per day per technician, per week, per month, and per year. What is the correct DAX formula for this?&amp;nbsp;I already have several calculations. The total time per day per technician seems to be correct. However, when I try to display this in a matrix table per week or per month, it doesn't sum up the times. It keeps looking at the first time and the last time per period. Who has a suitable solution?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 09:36:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3553708#M136743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-27T09:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: how do I calculate the total working time per day, per week, per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3554962#M136813</link>
      <description>&lt;P&gt;Does you column have a time data type?&lt;/P&gt;&lt;P&gt;Time data types have a maximum of 24hrs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you add 23 + 2 = 1 and not 25!&lt;/P&gt;&lt;P&gt;And 8 + 8 + 8 + 8 + 8 = 16 and not 40.&lt;/P&gt;&lt;P&gt;Try using a decimal data type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:55:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3554962#M136813</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2023-11-27T19:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: how do I calculate the total working time per day, per week, per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3555123#M136818</link>
      <description>&lt;P&gt;To find the first time of the day per technician:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Min Time StartArbeid = MIN(PTS_Z14IT_CRM_HR_DAT[StartArbeid])&lt;/LI&gt;&lt;LI&gt;Min Time StartReisHeen = MINX(FILTER(PTS_Z14IT_CRM_HR_DAT,PTS_Z14IT_CRM_HR_DAT[StartReisHeen] &amp;lt;&amp;gt; 0 ),PTS_Z14IT_CRM_HR_DAT[StartReisHeen])&lt;/LI&gt;&lt;LI&gt;Min Time = MINX({[Min Time StartReisHeen],[Min Time StartArbeid]},[Value])&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To find the last time of the day per technician:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Max Time TijdEindeArbeid = MAX(PTS_Z14IT_CRM_HR_DAT[EindeArbeid])&lt;/LI&gt;&lt;LI&gt;Max Time EindeReisTerug = MAX(PTS_Z14IT_CRM_HR_DAT[EindeReisTerug])&lt;/LI&gt;&lt;LI&gt;Max Time = MAXX({[Max Time EindeReisTerug],[Max Time TijdEindeArbeid]},[Value])&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To find the total working time per day per technician:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Totale tijd min = CALCULATE(DATEDIFF([Min Time],[Max Time],MINUTE)) //&lt;/LI&gt;&lt;LI&gt;Totale tijd uur = [Totale tijd min]/60&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the ‘Totale tijd min’ provides the total working time in minutes per day. When I place this as a value in a matrix table, I get an incorrect calculation of the total time. Also, when I try to see the total working time per week, I do not get accurate results.&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>Mon, 27 Nov 2023 21:22:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3555123#M136818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-27T21:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: how do I calculate the total working time per day, per week, per year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3566407#M137486</link>
      <description>&lt;P&gt;I have a solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 14:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-do-I-calculate-the-total-working-time-per-day-per-week-per/m-p/3566407#M137486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-04T14:59:56Z</dc:date>
    </item>
  </channel>
</rss>

