<?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: scenario logic help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945736#M952003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(F&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;irstSortedValue(SensorStatus,-Timestamp) = 'Faulty', 1, 0), Sensor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 12:19:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-03T12:19:16Z</dc:date>
    <item>
      <title>scenario logic help</title>
      <link>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945735#M952002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one scenario in which Sensor are sending temperature every minutes.&lt;/P&gt;&lt;P&gt;and there is possibility for them that sensor become faulty and will not sending any data .&lt;/P&gt;&lt;P&gt;so let say i have 50 sensor i want to pick there last temperature record so i am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue(SensorStatus,-Timestamp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i am using it in straight table and its working perfenctly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want the count of Faulty assets should be displayed in Text Box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let say sensor is out of range than i need to count of sensor which are out of range in text box.&lt;/P&gt;&lt;P&gt;How i can do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 12:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945735#M952002</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-12-03T12:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: scenario logic help</title>
      <link>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945736#M952003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(F&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;irstSortedValue(SensorStatus,-Timestamp) = 'Faulty', 1, 0), Sensor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 12:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945736#M952003</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-03T12:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: scenario logic help</title>
      <link>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945737#M952004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;let say sensor is out of range than i need to count of sensor which are out of range in text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By out of range, so you mean that the last update was older than a threshold value? Then somethng like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(Aggr(If(Max(Timestamp) &amp;lt;= (Now() - (vThreshold / 1400)), SensorID), SensorID))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(where &lt;EM style="font-size: 13.3333px;"&gt;vThreshold &lt;/EM&gt;is a timeout period in minutes, SensorID is a unique sensor ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression will count the sensors whose last update was more than vThreshold minutes ago.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 12:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945737#M952004</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-12-03T12:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: scenario logic help</title>
      <link>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945738#M952005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sunny,&lt;/P&gt;&lt;P&gt;in above scenario there is one more case &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;Sum(Aggr(If(F&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;irstSortedValue(SensorStatus,-Timestamp) = 'Faulty', 1, 0), Sensor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i want the count for Faulty and Faulty1, Do i need to add it or i can do in one exp?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 14:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945738#M952005</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-12-14T14:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: scenario logic help</title>
      <link>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945739#M952006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Aggr(If(&lt;SPAN style="color: #ff0000;"&gt;Match(&lt;/SPAN&gt;F&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;irstSortedValue(SensorStatus,-Timestamp), 'Faulty'&lt;SPAN style="color: #ff0000;"&gt;, 'Faulty1')&lt;/SPAN&gt;, 1, 0), Sensor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 14:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scenario-logic-help/m-p/945739#M952006</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-14T14:03:58Z</dc:date>
    </item>
  </channel>
</rss>

