<?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: Need help with repairs per hour in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3834107#M149907</link>
    <description>&lt;P&gt;I am looking to be able to calculate repairs per hour by owner. I dont have any other time metrics to use other than created on and completed on. I am going to run the logic built and update after. I am sorry I can't give more.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 13:04:30 GMT</pubDate>
    <dc:creator>Mathew_LeRoy</dc:creator>
    <dc:date>2024-04-12T13:04:30Z</dc:date>
    <item>
      <title>Need help with repairs per hour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3832299#M149851</link>
      <description>&lt;P&gt;I have an issue with a report. I am looking to see the repairs per hour. The sample data set I am working with is below. I want to see the repairs per hour by owner but I can't seem to figure it out. I haven't had any real training Power BI and I am learning as i go. Please help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Work Order&lt;/TD&gt;&lt;TD&gt;Serial number&lt;/TD&gt;&lt;TD&gt;Created on&lt;/TD&gt;&lt;TD&gt;Completed On&lt;/TD&gt;&lt;TD&gt;Owner&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WO54318&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;4/11/24 1:17 PM&lt;/TD&gt;&lt;TD&gt;4/11/24 1:24 PM&lt;/TD&gt;&lt;TD&gt;Scott Peterson&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&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4:30 PM&lt;/TD&gt;&lt;TD&gt;Tyler Richardson&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WO54332&lt;/TD&gt;&lt;TD&gt;A15&lt;/TD&gt;&lt;TD&gt;4/11/24 4:32 PM&lt;/TD&gt;&lt;TD&gt;4/11/24 4:47 PM&lt;/TD&gt;&lt;TD&gt;Tyler Richardson&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WO54333&lt;/TD&gt;&lt;TD&gt;A16&lt;/TD&gt;&lt;TD&gt;4/11/24 4:51 PM&lt;/TD&gt;&lt;TD&gt;4/11/24 4:59 PM&lt;/TD&gt;&lt;TD&gt;Tyler Richardson&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 12 Apr 2024 02:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3832299#M149851</guid>
      <dc:creator>Mathew_LeRoy</dc:creator>
      <dc:date>2024-04-12T02:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with repairs per hour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3832850#M149879</link>
      <description>&lt;P&gt;It would be great if you could provide more clarity on the logic for calculating a repair.&lt;/P&gt;&lt;P&gt;As of now, I have taken the following assumption:&lt;BR /&gt;Repair duration = Time difference in minutes between "Created On" and "Completed On"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, I created a calculated column in the table as follows, that calculates the repair duration in Minutes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Duration = DATEDIFF(Repairs[Created on],Repairs[Completed On],MINUTE)&lt;/LI-CODE&gt;&lt;P&gt;I have then used the "Duration" measure to calculate number of repairs in a minute and then on a hour. Here is the measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Repairs per Hour = 
VAR _repairPerMinute = DIVIDE(COUNT(Repairs[Work Order]),SUM(Repairs[Duration]))
VAR _repairPerHour = _repairPerMinute * 60
RETURN
ROUND(_repairPerHour, 0)&lt;/LI-CODE&gt;&lt;P&gt;If my assumption is correct then you can use this measure and it should solve your problem. Here is screenshot of the result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case, this is not something that you expect, kindly provide the following details:&lt;BR /&gt;- A logic for the repair duration calculation&lt;BR /&gt;- A sample anonymized dataset&lt;BR /&gt;- A sample image/data of the expected answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 07:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3832850#M149879</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-04-12T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with repairs per hour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3834107#M149907</link>
      <description>&lt;P&gt;I am looking to be able to calculate repairs per hour by owner. I dont have any other time metrics to use other than created on and completed on. I am going to run the logic built and update after. I am sorry I can't give more.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 13:04:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3834107#M149907</guid>
      <dc:creator>Mathew_LeRoy</dc:creator>
      <dc:date>2024-04-12T13:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with repairs per hour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3834152#M149908</link>
      <description>&lt;P&gt;No problem,&lt;/P&gt;&lt;P&gt;Just try the solution and let me know if it solves your issues.&lt;/P&gt;&lt;P&gt;Happy to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 13:14:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3834152#M149908</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-04-12T13:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with repairs per hour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3834898#M149950</link>
      <description>&lt;P&gt;This works! Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 23:11:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-repairs-per-hour/m-p/3834898#M149950</guid>
      <dc:creator>Mathew_LeRoy</dc:creator>
      <dc:date>2024-04-12T23:11:57Z</dc:date>
    </item>
  </channel>
</rss>

