<?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 you calculate Mean Time Between Impacts(hour/time)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106227#M463052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I really understand what you are asking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using e.g. set analysis should enable you to filter your data, also in the advanced aggregation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3285"&gt;The Aggregation Scope&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that where I have used a pure field reference in the expression part of the advanced aggregation, it should be read as an implicite Only(FIELD). And remember that you can apply set analysis to Only() function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2662"&gt;The Only Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2016 18:24:42 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-08-09T18:24:42Z</dc:date>
    <item>
      <title>How do you calculate Mean Time Between Impacts(hour/time)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106221#M463046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How do you write the&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; expression &amp;amp; dimension for showing Mean Time Between Impacts (MTBI)? Impact = count(impact_enum). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Assuming apart of the calculation is impact_end_time - impact_start_time . I want to have either hours or days sum represented on the graph by month, quarter and year.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 19:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106221#M463046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-01T19:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate Mean Time Between Impacts(hour/time)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106222#M463047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you may be try to trim down your sample?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 19:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106222#M463047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-01T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate Mean Time Between Impacts(hour/time)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106223#M463048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want to calculate something like a MTBF&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Mean_time_between_failures" title="https://en.wikipedia.org/wiki/Mean_time_between_failures"&gt;Mean time between failures - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to calculate this would be (assuming you want to calculate the number per service type and the data loaded in is sorted in chronological order):&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Impact Affected Service&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;=Avg(Aggr( [Impact Start Time] -Above([Impact End Time]), [Impact Affected Service], [Impact Number]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;31,787202 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sys1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;24,548611&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sys2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;40,695833&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sys3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;28,642361&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sys4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;75,874653&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sys5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0,99930556&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Sys6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;8,3048611&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Numbers in fraction of days, you can use Interval() function to show your numbers in hours or minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also calculate your numbers in your load script, if you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 20:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106223#M463048</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-01T20:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate Mean Time Between Impacts(hour/time)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106224#M463049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I almost have it working. But I have an issue with end time being earlier than 2016 due to user inputting bad data in the input field . Example &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[impact_start_time]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[impact_end_time]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;7/21/2016&amp;nbsp; 6:43:38 AM - 1/1/1970&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an expression that I can disregard the 1970 end time date and any input of an end time date that proceeds the start time date and vice versa? That way it doesn't mess up the MTBF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 23:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106224#M463049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-01T23:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate Mean Time Between Impacts(hour/time)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106225#M463050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to correct or filter the records in the script (e.g. using a flag) or in the UI using e.g. set analysis like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;[Impact Number] = {"=[Impact Start Time]&amp;lt;= [Impact End Time]"}&amp;gt;}&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Aggr( [Impact Start Time] -Above([Impact End Time]), [Impact Affected Service], [Impact Number]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;[Impact End Time] -= {'1/1/1970'}&amp;gt;}&lt;/STRONG&gt;&amp;nbsp; // use the correct timestamp code for your value you want to filter as shown in QV&lt;/P&gt;&lt;P&gt;Aggr( [Impact Start Time] -Above([Impact End Time]), [Impact Affected Service], [Impact Number]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will filter the impact numbers WHERE Start Time &amp;lt;= End Time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note two things:&lt;/P&gt;&lt;P&gt;- Removing impact numbers will over-estimate your MTBF, then. Maybe it's better to just set the end time to start time for these impacts in the script.&lt;/P&gt;&lt;P&gt;- Using the Aggr() function requires your Impact Numbers loaded in in chronological order, or use structured parameter:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106225#M463050</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-02T06:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate Mean Time Between Impacts(hour/time)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106226#M463051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Hopefully this is my last issue on this question but with aggr function can I through in a parameter of &amp;gt;120 days? Being a newbie still not sure how to use aggr. I am trying to make MBTF have a definition of&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Calibri; font-size: 12pt;"&gt;Max. acceptable period between Top or High failures&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Calibri; font-size: 12pt;"&gt;Any insight on this is much appreciated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Calibri; font-size: 12pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Calibri; font-size: 12pt;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 23:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106226#M463051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-08T23:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate Mean Time Between Impacts(hour/time)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106227#M463052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I really understand what you are asking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using e.g. set analysis should enable you to filter your data, also in the advanced aggregation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3285"&gt;The Aggregation Scope&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that where I have used a pure field reference in the expression part of the advanced aggregation, it should be read as an implicite Only(FIELD). And remember that you can apply set analysis to Only() function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2662"&gt;The Only Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-calculate-Mean-Time-Between-Impacts-hour-time/m-p/1106227#M463052</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-09T18:24:42Z</dc:date>
    </item>
  </channel>
</rss>

