<?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: Calculate time by day in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143846#M112380</link>
    <description>&lt;P&gt;I've found a solution, sir&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you very much for your help&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 04:56:31 GMT</pubDate>
    <dc:creator>Lucky_BI</dc:creator>
    <dc:date>2023-03-21T04:56:31Z</dc:date>
    <item>
      <title>Calculate time by day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143758#M112368</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How do I add up the duration (Time Check out - Time Check in) of each name based on the date of the day excluding him from a different outlet with DAX?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Name : Mike&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Dates:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;20/03/2023&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Outlet A: 17:00:00 - 08:00:00 = 09:00:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Outlet B: 16:00:00 - 08:00:00 = 08:00:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;21/03/2023&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Outlet C: 16:30:00 - 08:00:00 = 08:30:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;So, Mike's &lt;STRONG&gt;Duration &lt;/STRONG&gt;for 20/03/2023 is 17:00:00 Hours.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Meanwhile, Mike's duration for 21/03/2023 is 08:30:00 Hours&lt;BR /&gt;Download file:&amp;nbsp;&lt;A href="https://micresearchnet-my.sharepoint.com/:x:/g/personal/rinaldi_mic_ms/EaWO51nG85tKulbdqQ3iE6YB--jZmVNQn00r1kb147XyDA?e=PhZZDE" target="_blank"&gt;Time.xlsx&lt;/A&gt;&lt;BR /&gt;Thank you for your help&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 03:40:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143758#M112368</guid>
      <dc:creator>Lucky_BI</dc:creator>
      <dc:date>2023-03-21T03:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time by day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143812#M112375</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="422883" data-lia-user-login="Lucky_BI" class="lia-mention lia-mention-user"&gt;Lucky_BI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;DateTime format cannot display times more than 24 hours. This has to be a decimal number or custom formatted string. Please refer to attached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Hours = 
SUMX ( 
    SUMMARIZE ( 
        'Table',
        'Table'[Name],
        'Table'[Date]
    ),
    CONVERT ( 
        SUMX ( 
            CALCULATETABLE ( 'Table' ),
            'Table'[Time Check Out] - 'Table'[Time Check In]
        ),
        DOUBLE
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Mar 2023 04:15:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143812#M112375</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-21T04:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time by day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143828#M112378</link>
      <description>&lt;P&gt;Thank you for the suggestion&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;But in this case, a worker has no more than 24 hours working time at each outlet for one day. So the total in one day will not be more than 24 hours. If so how is it?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 04:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143828#M112378</guid>
      <dc:creator>Lucky_BI</dc:creator>
      <dc:date>2023-03-21T04:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time by day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143846#M112380</link>
      <description>&lt;P&gt;I've found a solution, sir&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you very much for your help&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 04:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143846#M112380</guid>
      <dc:creator>Lucky_BI</dc:creator>
      <dc:date>2023-03-21T04:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time by day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143874#M112383</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="422883" data-lia-user-login="Lucky_BI" class="lia-mention lia-mention-user"&gt;Lucky_BI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes but if you aggregate the dates for each name it will exceed 24 hours. However you can just delete the CONVERT part from the code but note that the totals will be wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 05:36:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-by-day/m-p/3143874#M112383</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-21T05:36:03Z</dc:date>
    </item>
  </channel>
</rss>

