<?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 to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3628387#M140304</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;, Thanks for the response. Will check it out.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 04:54:00 GMT</pubDate>
    <dc:creator>Jeyeline</dc:creator>
    <dc:date>2024-01-10T04:54:00Z</dc:date>
    <item>
      <title>How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3616074#M139804</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp; We are using analytic view of Microsoft Azure Devops to integrate it with Power BI. The normal incident columns that we had in our devops are mentioned in the attached images&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;&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;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given these fields, we are uncertain about how to automatically calculate metrics like MTBF, MTTR, MTTF, and MTTA using DAX queries. Is there any ways to get it done?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 17:18:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3616074#M139804</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-04T17:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3616197#M139807</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="669435" data-lia-user-login="Jeyeline" class="lia-mention lia-mention-user"&gt;Jeyeline&lt;/a&gt;&amp;nbsp;See my article on Mean Time Between Failure (MTBF) which uses EARLIER: &lt;A href="http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586" target="_blank"&gt;http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586&lt;/A&gt;.&lt;BR /&gt;The basic pattern is:&lt;BR /&gt;Column =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; VAR __Current = [Value]&lt;BR /&gt;&amp;nbsp; VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] &amp;lt; EARLIER('Table'[Date])),[Date])&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])&lt;BR /&gt;RETURN&lt;BR /&gt;&amp;nbsp; __Current - __Previous&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 18:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3616197#M139807</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-04T18:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3617637#M139862</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have gone through it already and tried with some DAX. However, I am facing an error over these. It would be grateful if I get guidance in creating a separate DAX for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MTBF - If we are required to calculate MTBF for a particular month, we need to have DAX which is supposed to calculate the MTBF based on (the sum of values of a particular work item' lead time (Incident)days- days in the month) divided by its no of occurrences (WIT-Incident) in that month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MTTR -&amp;nbsp;If we are required to calculate MTTR for a particular month, we need to have DAX which is supposed to calculate the MTTR based on the sum of values of a particular work item' lead time (Incident) divided by its no of occurrences (WIT-Incident) in that month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please help us in creating DAX queries?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 07:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3617637#M139862</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-08T07:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3618124#M139879</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="669435" data-lia-user-login="Jeyeline" class="lia-mention lia-mention-user"&gt;Jeyeline&lt;/a&gt;&amp;nbsp;Can you post sample data or a PBIX file?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 15:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3618124#M139879</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-05T15:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3621607#M140062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please find the information and the attached data.&lt;/P&gt;&lt;P&gt;MTBF - &lt;SPAN&gt;&lt;SPAN class=""&gt;The Lead time of all incidents (in hours) is subtracted from the total number of hours of a month, and the value is divided by the number of incident occurrences.&lt;BR /&gt;(where lead time is the date diff between the created date and the closed date for each work item and convert to hours)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MTTR - Sum of lead times(in hours) for the month divided by the no of occurrences in that month.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 07:23:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3621607#M140062</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-08T07:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3621614#M140064</link>
      <description>&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;ID&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Work Item Type&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Title&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Created Date&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Closed Date&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;29758&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 1&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;11/29/2023 12:52:51 PM&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;01/02/24 10:07&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;29768&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 2&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;11/29/2023 1:05:56 PM&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;11/29/2023 1:06:00 PM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30348&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 3&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/04/23 17:07&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30355&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/05/23 12:33&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/29/2023 10:09:07 AM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30360&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/05/23 13:04&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/29/2023 10:10:06 AM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30814&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 6&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/08/23 11:58&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/29/2023 10:10:55 AM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30819&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 7&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/08/23 12:09&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/29/2023 10:11:35 AM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30834&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 8&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/08/23 12:22&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/29/2023 10:14:26 AM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30851&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 9&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/08/23 12:51&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/29/2023 10:15:45 AM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;30854&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;Incident 10&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/08/23 12:56&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#000000"&gt;12/29/2023 10:17:32 AM&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 08 Jan 2024 07:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3621614#M140064</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-08T07:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3623222#M140092</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="669435" data-lia-user-login="Jeyeline" class="lia-mention lia-mention-user"&gt;Jeyeline&lt;/a&gt;&amp;nbsp;OK, so I believe I see the potential issue here. You want reporting on a monthly grain but you have incidents that span months. You'll need to do something&amp;nbsp;along the lines of these two Quick Measures as I think you want something like them.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that the issue you are running into?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 14:33:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3623222#M140092</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-08T14:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3625102#M140149</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The second link partially helps. We are having records with Bugs, Incident, CRs for overall duration. On that, we need to filter based on the month for the incident work item type.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then, we need to calculate the lead time (like the second chart based on the created date and closed date) divided by the number of occurrences for MTTR&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 07:37:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3625102#M140149</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-09T07:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3627384#M140276</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="669435" data-lia-user-login="Jeyeline" class="lia-mention lia-mention-user"&gt;Jeyeline&lt;/a&gt;&amp;nbsp;It's an interesting and complex issue, let me see what I can do. Going to take a crack at it.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 17:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3627384#M140276</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-09T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3627447#M140278</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="669435" data-lia-user-login="Jeyeline" class="lia-mention lia-mention-user"&gt;Jeyeline&lt;/a&gt;&amp;nbsp;OK, see if this is what you are going for. PBIX is attached. This is based on your sample data. This is for MTTR, MTBF should follow naturally from the same kind of logic.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MTTR = 
    VAR __Incidents = ADDCOLUMNS('Table',"Effective Date",IF(ISBLANK([Closed Date]),TODAY(),[Closed Date]))
    VAR __Table =  
    SELECTCOLUMNS(
        FILTER(
            GENERATE(
                __Incidents,
                'Dates'
            ),
            [Date] &amp;gt;= DATEVALUE([Created Date]) &amp;amp;&amp;amp;
            [Date] &amp;lt;= DATEVALUE([Effective Date])
        ),
        "ID",[ID],
        "Date",[Date]
    )
    VAR __Table1 = GROUPBY(__Table,[ID],"Count",COUNTX(CURRENTGROUP(),[Date]))
    VAR __NumIncidents = COUNTROWS(__Table1) // Number of incidents in month
    VAR __IncidentsInMonth = 
        ADDCOLUMNS(
            ADDCOLUMNS(
                FILTER( __Incidents, [ID] IN SELECTCOLUMNS(__Table1, "ID", [ID])),
                "NewEffectiveDate", 
                        VAR __EOMonth = EOMONTH(MAX('Dates'[Date]),0) + TIME(23, 59, 59)
                        VAR __Result = IF([Closed Date] &amp;gt; EOMONTH(MAX('Dates'[Date]), 0), EOMONTH(MAX('Dates'[Date]), 0), [Effective Date])
                    RETURN 
                        __Result,
                "NewCreationDate", 
                        VAR __BOMonth = MIN('Dates'[Date])
                        VAR __Result = IF([Created Date] &amp;lt; __BOMonth, __BOMonth, [Created Date])
                    RETURN
                        __Result
            ),
            "Diff", [NewEffectiveDate] - [NewCreationDate]
        )
    VAR __TotalTime = SUMX(__IncidentsInMonth, [Diff])
    VAR __Result = DIVIDE( __TotalTime, __NumIncidents )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3627447#M140278</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-09T18:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3628387#M140304</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;, Thanks for the response. Will check it out.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 04:54:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3628387#M140304</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-10T04:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3634978#M140613</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;, would like to know the purpose of the fields - effective date, new effective date and new creation date.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 05:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3634978#M140613</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-12T05:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3639341#M140867</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="669435" data-lia-user-login="Jeyeline" class="lia-mention lia-mention-user"&gt;Jeyeline&lt;/a&gt;&amp;nbsp;So basically this is accounting for when an incident spans months and is not closed yet. If I remember the code, if the incident is not closed, I fill it in with today's date and time so that calculations for the current month account for the fact that this incident is at least ongoing at the present time. The new effective date and new creation date are accounting for spanning months. So let's say an incident opens in November and closes in January. For calculating the monthly MTTR for November, the end date needs to be November 30th. For December, the creation date is December 1st and end is December 31st. For January the creation date is January 1st and the end date is the day the ticket was closed. Hopefully that makes sense, but the logic is that if you have issues that span months but you want a granularity of month for your calculations, you need to essentially "invent" the monthly grain data points within your measure.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 17:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3639341#M140867</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-15T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3653306#M141530</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I was wondering if it might be possible to achieve the desired outcome without introducing additional fields for new effective data. If we calculate the normal span between months, wouldn't it automatically determine the difference between the created and closed dates?&lt;BR /&gt;&lt;BR /&gt;I just wanted to confirm this with you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 07:18:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3653306#M141530</guid>
      <dc:creator>Jeyeline</dc:creator>
      <dc:date>2024-01-23T07:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3654743#M141590</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="669435" data-lia-user-login="Jeyeline" class="lia-mention lia-mention-user"&gt;Jeyeline&lt;/a&gt;&amp;nbsp;Not entirely certain what you are getting at. Went down this path because you wanted to get the MTTR or MTBF for a particular month. So, that said, let's say you have an incident that starts in January and ends in March. What then is the MTTR or MTBF for that incident in February and how do you get that incident into context in the first place for February? Or in those cases do you want to ignore it completely or ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure, at a macro level (ignoring month granularity) you could calculate these values based upon the original creation and closed dates. However, at that point you would then have to compute an average I suppose across the number of months that are in context. So if you computed MTTR or MTBF for the overall data set, you would then need to count how many months are in context (let's say 3) and then divide your value by 3 to give you the monthly MTTR/MTBF for example.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 17:21:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3654743#M141590</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-23T17:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3881215#M151501</link>
      <description>&lt;P&gt;Can you support MTTFpm ?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 03:57:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3881215#M151501</guid>
      <dc:creator>Sukh-ErdeneB</dc:creator>
      <dc:date>2024-05-01T03:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MTBF, MTTR , MTTF , MTTA in query editor based on data from analytic view of devops</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3994908#M155146</link>
      <description>&lt;P&gt;Hi, trying to do the same. Do you have any solution ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 17:01:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-MTBF-MTTR-MTTF-MTTA-in-query-editor-based-on/m-p/3994908#M155146</guid>
      <dc:creator>y45</dc:creator>
      <dc:date>2024-06-16T17:01:16Z</dc:date>
    </item>
  </channel>
</rss>

