<?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: Create an alert based on multiple condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285482#M402512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Please help me get a solution to this post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 15:12:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-03T15:12:38Z</dc:date>
    <item>
      <title>Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285480#M402510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the attached data model I need to create an alert if it meets the following condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition 1: ActualUptimePercent &amp;lt; CommittedUptimePercent for a given month and&lt;/P&gt;&lt;P&gt;Condition 2:&amp;nbsp; if ActualUptimePercent&amp;gt;CommittedUptimePercent for next three consecutive months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see in the attached datamodel file first 4 line items meet condition 1 but don't meet condition 2 so how do I only pull the ones in green where it meets both conditions. If you see the line Item in green for Datamonth 7/1/2016 and 1/1/2016 it meets both the above conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the dashboard where I can make the first condition work but I am need to incorporate both the conditions to pull only the line items highlighted in green in the data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 17:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285480#M402510</guid>
      <dc:creator />
      <dc:date>2017-02-02T17:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285481#M402511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone any thoughts on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 14:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285481#M402511</guid>
      <dc:creator />
      <dc:date>2017-02-03T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285482#M402512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Please help me get a solution to this post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285482#M402512</guid>
      <dc:creator />
      <dc:date>2017-02-03T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285483#M402513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285483#M402513</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-03T15:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285484#M402514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, thank you for your response. This works fine with the Excel Data Model that I sent but when I apply the same logic to my actual data model it's pulling a lot of line items where the given condition is not met and in some cases it's missing the ones that should be pulled. For example in the attached model it's pulling the purple ones but missing the green one which should be reported. This is happening for rest of the data in the datamodel. Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285484#M402514</guid>
      <dc:creator />
      <dc:date>2017-02-06T19:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285485#M402515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached a larger version of the data model where the suggested logic is not working 100%. If you see the Servername 'AAA' the dashboard is showing the yellow highlighted line items which are not meeting the two conditions and it's not showing the green one where both conditions are met. Likewise same thing is happening for rest of the data where it's reporting corrected somewhere but not everywhere. To meet both conditions and to be shown on the dashboard first ActualUptimePercent should be less than CommittedUptimePercent for a given month and then for next three consecutive months ActualUptimePercent should be greater than or equal to CommittedUptimePercent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the datamodel and the dashboard for your reference. Please let me know if you have a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 21:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285485#M402515</guid>
      <dc:creator />
      <dc:date>2017-02-06T21:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285486#M402516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285486#M402516</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T22:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285487#M402517</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&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataMonth, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(DataMonth,0),'MM/DD/YYYY') as DataMonth2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Server, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Environment, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommittedUptimePercent, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActualUptimePercent,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ActualUptimePercent&amp;lt;CommittedUptimePercent,1,0) as downtime,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Server &amp;amp; Environment as RewardID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DB.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD*,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Server = Previous(Previous(Previous(Server))) &lt;SPAN style="color: #ff0000;"&gt;and Environment = Previous(Previous(Previous(Environment)))&lt;/SPAN&gt; and Previous(ActualUptimePercent) &amp;gt; Previous(CommittedUptimePercent)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; and Previous(Previous(ActualUptimePercent)) &amp;gt; Previous(Previous(CommittedUptimePercent))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; and Previous(Previous(Previous(ActualUptimePercent))) &amp;gt; Previous(Previous(Previous(CommittedUptimePercent))), 1, 0) as Flag2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Server, &lt;SPAN style="color: #ff0000;"&gt;Environment,&lt;/SPAN&gt;&amp;nbsp; DataMonth desc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152220_Capture.PNG" style="height: 140px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285487#M402517</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T22:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create an alert based on multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285488#M402518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked out perfectly fine. Thank you for your help Sunny. Really appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-alert-based-on-multiple-condition/m-p/1285488#M402518</guid>
      <dc:creator />
      <dc:date>2017-02-09T20:03:01Z</dc:date>
    </item>
  </channel>
</rss>

