<?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 hours spent on a ticket before 12 AM for ticket start time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1513743#M29428</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , how we plan to take diff. Diff from for hour spend. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also refer these&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-using-dax" target="_blank"&gt;https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-using-dax&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-in-dax.aspx" target="_blank"&gt;https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-in-dax.aspx&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&amp;amp;MessageKey=814a2cb4-3cca-4cd1-a620-c467adeaaaf6&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer" target="_blank"&gt;https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&amp;amp;MessageKey=814a2cb4-3cca-4cd1-a620-c467adeaaaf6&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 12:27:00 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-11-24T12:27:00Z</dc:date>
    <item>
      <title>calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1513671#M29426</link>
      <description>&lt;P&gt;How can I&amp;nbsp;calculate hours spent on a ticket before 12 AM for ticket start time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below column for which I need to calculate the hours spent before 12 AM so that I can calculate the hours spent on the ticket for one specific date if the ticket end date is after 12AM 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;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GKK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6971" data-lia-user-login="Eric_Zhang" class="lia-mention lia-mention-user"&gt;Eric_Zhang&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 11:58:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1513671#M29426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-24T11:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1513743#M29428</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , how we plan to take diff. Diff from for hour spend. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also refer these&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-using-dax" target="_blank"&gt;https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-using-dax&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-in-dax.aspx" target="_blank"&gt;https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-in-dax.aspx&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&amp;amp;MessageKey=814a2cb4-3cca-4cd1-a620-c467adeaaaf6&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer" target="_blank"&gt;https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&amp;amp;MessageKey=814a2cb4-3cca-4cd1-a620-c467adeaaaf6&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 12:27:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1513743#M29428</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-24T12:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1514091#M29440</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand the question. Please clarify with an example based on sample data. And please share the data on a format that can be copied rather than on screen cap&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1514091#M29440</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-24T15:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1514229#M29446</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see below the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;start_time&lt;/TD&gt;&lt;TD&gt;end_time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;26/02/2020 21:59&lt;/TD&gt;&lt;TD&gt;26/02/2020 21:59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25/02/2020 15:14&lt;/TD&gt;&lt;TD&gt;25/02/2020 15:14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/07/2020 19:00&lt;/TD&gt;&lt;TD&gt;08/07/2020 19:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17/08/2020 14:00&lt;/TD&gt;&lt;TD&gt;17/08/2020 14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18/08/2020 14:00&lt;/TD&gt;&lt;TD&gt;18/08/2020 14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19/08/2020 19:26&lt;/TD&gt;&lt;TD&gt;19/08/2020 19:26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17/08/2020 19:06&lt;/TD&gt;&lt;TD&gt;17/08/2020 19:06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18/08/2020 19:31&lt;/TD&gt;&lt;TD&gt;18/08/2020 19:31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/08/2020 14:00&lt;/TD&gt;&lt;TD&gt;20/08/2020 14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/08/2020 19:39&lt;/TD&gt;&lt;TD&gt;20/08/2020 19:39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/08/2020 19:11&lt;/TD&gt;&lt;TD&gt;31/08/2020 19:11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the start time before 12 AM and End time after 12 AM if the same ticket or Job id is worked upon after 12 AM as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AS I need to calculate the production availability of agents for each day before 12 AM and the rest of the time after 12 AM even for the same ticket should be calculated in the next day.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:59:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1514229#M29446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-24T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1516049#M29502</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked for an example based on the data &lt;STRONG&gt;with the expected result &lt;/STRONG&gt;to help clarify. You have not provided it and your text explanation is not clear enough for me to understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 11:02:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1516049#M29502</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-25T11:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1516245#M29503</link>
      <description>&lt;P&gt;The result I need is Ticket end time on or before 23:59:59 PM on a specific date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:- if a sepcific ticket is worked from 25/11/2020 9:15 PM to 26/11/2020 3:15 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ticket end time on or before 23:59:59 PM should come under 25/11/2020 and on or after 12 AM should be calculated under 26/11/2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ticket ID start_time end_time&lt;BR /&gt;1 02/09/2020 17:04 03/09/2020 02:17&lt;BR /&gt;2 17/05/2020 20:20 18/05/2020 05:29&lt;BR /&gt;3 11/08/2020 20:10 12/08/2020 05:19&lt;BR /&gt;4 01/07/2020 13:31 01/07/2020 22:40&lt;BR /&gt;5 21/09/2020 13:24 21/09/2020 22:35&lt;BR /&gt;6 27/09/2020 10:55 27/09/2020 20:15&lt;BR /&gt;7 05/08/2020 13:55 05/08/2020 23:03&lt;BR /&gt;8 16/07/2020 13:56 16/07/2020 23:05&lt;BR /&gt;9 24/07/2020 13:58 24/07/2020 23:08&lt;BR /&gt;10 21/08/2020 10:00 21/08/2020 19:14&lt;BR /&gt;11 23/06/2020 21:01 24/06/2020 06:16&lt;BR /&gt;12 25/06/2020 20:49 26/06/2020 06:03&lt;BR /&gt;13 20/08/2020 21:03 21/08/2020 06:11&lt;BR /&gt;14 24/07/2020 11:00 24/07/2020 20:13&lt;BR /&gt;15 01/10/2020 10:54 01/10/2020 20:07&lt;BR /&gt;16 01/05/2020 23:59 02/05/2020 09:09&lt;BR /&gt;17 29/09/2020 22:17 30/09/2020 07:28&lt;BR /&gt;18 05/03/2020 23:39 06/03/2020 08:58&lt;BR /&gt;19 09/01/2020 13:38 09/01/2020 22:51&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is what I am trying to achieve, if you can help me with this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 12:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1516245#M29503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T12:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1516247#M29504</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 12:09:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1516247#M29504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T12:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: calculate hours spent on a ticket before 12 AM for ticket start time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1521826#M29699</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create two calculated columns in your table and set their data type to Time&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time 1st day = DATEVALUE(Table1[end_time]) - Table1[start_time]  &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time 2nd day = Table1[end_time] - DATEVALUE(Table1[end_time])   &lt;/LI-CODE&gt;
&lt;P&gt;See it all at work in the attached file.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 09:49:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-hours-spent-on-a-ticket-before-12-AM-for-ticket-start/m-p/1521826#M29699</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-28T09:49:47Z</dc:date>
    </item>
  </channel>
</rss>

