<?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: Availability help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061317#M355257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for a quick answer! I've solved this problem, just forgot to write it down. But when you're using a Statistical process control chart your using avg.&lt;/P&gt;&lt;P&gt;The Aggr() function won't work for the equipment's that has no dates.&lt;/P&gt;&lt;P&gt;From the real application:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ava_real.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119261_ava_real.PNG" style="width: 620px; height: 310px;" /&gt;&lt;/P&gt;&lt;P&gt;But when I choose a equipment that is has 100% I get "No data to display".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 07:26:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-24T07:26:09Z</dc:date>
    <item>
      <title>Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061314#M355254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having problems calculating availability for some equipment's. I've got some help how to make reference dates of my events in this thread &lt;A href="https://community.qlik.com/thread/204820"&gt;(Availability) Calendar based on two dates&lt;/A&gt;. The problem I'm facing now is that I want to make a Statistical process control chart and it's hard calculating equipment that hasn't got an event on it (100% availability). Is the best way to do a date range for each equipment's? If so, should I calculate the duration of a day - event duration for each day to prevent having two tables?&lt;/P&gt;&lt;P&gt;In this example there's only a few equipment's, but in reality there is about 40000 equipment's, therefore keeping the data to a minimum is a must.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="equip_table.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119204_equip_table.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="event_table.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/119205_event_table.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061314#M355254</guid>
      <dc:creator />
      <dc:date>2016-03-23T19:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061315#M355255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Availability.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119199_Availability.png" style="width: 620px; height: 172px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a master calendar in the script (you can adapt the min and max date, currently it uses min and max date of events).&lt;/P&gt;&lt;P&gt;Then you can calculate the availability by calculating the theoretical max time available (see the denominator in above expression), by counting the total equipments in the data and multiply by number of seconds per date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 20:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061315#M355255</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-23T20:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061316#M355256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And use set analysis in the total equipment count to prevent the chart to collaps to zero when making a selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-Sum(Duration_sec) / (COUNT({&lt;STRONG&gt;1}&lt;/STRONG&gt; TOTAL DISTINCT equipment)*Count(DISTINCT EventDate)* 60*60*24)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 20:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061316#M355256</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-23T20:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061317#M355257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for a quick answer! I've solved this problem, just forgot to write it down. But when you're using a Statistical process control chart your using avg.&lt;/P&gt;&lt;P&gt;The Aggr() function won't work for the equipment's that has no dates.&lt;/P&gt;&lt;P&gt;From the real application:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ava_real.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119261_ava_real.PNG" style="width: 620px; height: 310px;" /&gt;&lt;/P&gt;&lt;P&gt;But when I choose a equipment that is has 100% I get "No data to display".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 07:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061317#M355257</guid>
      <dc:creator />
      <dc:date>2016-03-24T07:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061318#M355258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are talking about, have you maybe forgot to add the visualization chart to your sample file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without knowing the exact dimensions and expressions you are using, I think I can't offer any specific help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 10:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061318#M355258</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061319#M355259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for being fuzzy, hopefully I can explain myself a bit better.&lt;/P&gt;&lt;P&gt;What I want to able to do is looking at one specific equipment and see the availability for that one. I also want to be able to choose a date range even if it's an equipment that has no events on it. As you can see in the new copy I lose months when I choose&amp;nbsp; "equip2".&lt;/P&gt;&lt;P&gt;I also want to be able to make an SPC chart, one of the expressions for that chart looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;TOTAL&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: #0000ff; font-size: 8pt;"&gt;EXPRESSION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DIMENSION&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;))+(2.66*&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;TOTAL&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: #0000ff; font-size: 8pt;"&gt;fabs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;EXPRESSION&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: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;EXPRESSION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DIMENSION&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 11:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061319#M355259</guid>
      <dc:creator />
      <dc:date>2016-03-24T11:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061320#M355260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think you would need to create a single record for each equipment (with no outage durations) in your Events table, but then use a link table to link the single records to all dates in your calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way every machine is present for evey date in your date range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 14:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061320#M355260</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T14:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Availability help</title>
      <link>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061321#M355261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks great! Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Availability-help/m-p/1061321#M355261</guid>
      <dc:creator />
      <dc:date>2016-03-29T06:00:16Z</dc:date>
    </item>
  </channel>
</rss>

