<?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: Logic with set of rules in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443527#M797657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached file as per data you have provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here as per logic provided in sample data, Condition 1,2,and 3 will be always 0 because for condition 1 denominator is 0 and condition 2 &amp;amp; 3 rate is 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 10:20:55 GMT</pubDate>
    <dc:creator>neha_shirsath</dc:creator>
    <dc:date>2017-12-07T10:20:55Z</dc:date>
    <item>
      <title>Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443519#M797646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a logic in qlikiew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales rate: &lt;STRONG&gt;(Sum(Sales)/Count(TransID))*100000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula Rules:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;If the numerator is greater than zero, but the denominator is zero, then the Sales rate is set to 1,000,000.&lt;/LI&gt;&lt;LI&gt;If the numerator and denominator are both zero, then the Sales rate is zero.&lt;/LI&gt;&lt;LI&gt;If the denominator is negative and the numerator is 0, then the Sales rate is set to 0.&lt;/LI&gt;&lt;LI&gt;If the denominator is negative and the numerator is greater than zero, then the Sales rate is set to 1,000,000.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would the qlikview logic followed with the above rules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443519#M797646</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443520#M797647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is it possible that denominator i.e count(TransID) has negative values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 09:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443520#M797647</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2017-12-07T09:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443521#M797648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to close &lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure i followed in you. Will you mock something..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 09:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443521#M797648</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-07T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443522#M797649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is sample logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum(sales)/count(parts))*1000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 09:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443522#M797649</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-12-07T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443523#M797650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post some sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because might be i'm not getting your point. What i'm thinking is if you are counting Parts it will be 1,2,3... etc not in negative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 09:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443523#M797650</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2017-12-07T09:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443524#M797651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;If((Sum({&amp;lt;Sales = {"=Sum(Sales)&amp;gt;0"}&amp;gt;} Sales)/Count({&amp;lt;TransID = {"=Count(TransID) = 0"}&amp;gt;}TransID)),(Sum(Sales)/Count(TransID))*100000)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;If((Sum({&amp;lt;Sales = {"=Sum(Sales)=0"}&amp;gt;} Sales)/Count({&amp;lt;TransID = {"=Count(TransID)=0"}&amp;gt;} TransID)), 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;STRONG&gt;If((Sum({&amp;lt;Sales = {"=Sum(Sales)=0"}&amp;gt;} Sales)/Count({&amp;lt;TransID = {"=Count(TransID)&amp;lt;=0"}&amp;gt;} TransID)), 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) &lt;STRONG&gt;If((Sum({&amp;lt;Sales = {"=Sum(Sales)&amp;gt;0"}&amp;gt;} Sales)/Count({&amp;lt;TransID = {"=Count(TransID)&amp;lt;=0"}&amp;gt;} TransID)), (Sum(Sales)/Count(TransID))*1000000)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 09:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443524#M797651</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-07T09:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443525#M797653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To handle your first two rules:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Alt(Sum(Sales) / Count(TransID) * 1E5, If(Sum(Sales) = 0, 0, 1E6)) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dividing by zero would trigger the second part of the Alt().&amp;nbsp; &lt;/P&gt;&lt;P&gt;The last two rules could never happen as Count() cannot produce a negative value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 09:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443525#M797653</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-12-07T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443526#M797655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached sample data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 09:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443526#M797655</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-12-07T09:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443527#M797657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached file as per data you have provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here as per logic provided in sample data, Condition 1,2,and 3 will be always 0 because for condition 1 denominator is 0 and condition 2 &amp;amp; 3 rate is 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 10:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443527#M797657</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2017-12-07T10:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443528#M797658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide logic.&lt;/P&gt;&lt;P&gt;I don't have access to open external Apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 11:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443528#M797658</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-12-07T11:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443529#M797660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. If(Sum(Notifications)&amp;gt;0 and sum([Item Movement])=0, (Sum(Notifications)/sum([Item Movement]))*100000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.If(Sum( Notifications)=0 and sum([Item Movement])=0, (Sum(Notifications)/sum([Item Movement]))*0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.If(Sum( Notifications)=0 and sum([Item Movement])&amp;lt;0, (Sum(Notifications)/sum([Item Movement]))*0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.If(Sum( Notifications)&amp;gt;0 and sum([Item Movement])&amp;lt;0, (Sum(Notifications)/sum([Item Movement]))*1000000)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 11:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443529#M797660</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2017-12-07T11:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443530#M797661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I belive its not what i required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find the below set of rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="804"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="52" width="804"&gt;1. If the numerator is greater than zero, but the denominator is zero, then the Sales rate is set to 1,000,000.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="45" width="804"&gt;2. If the numerator and denominator are both zero, then the Sales rate is zero.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="45" width="804"&gt;3. If the denominator is negative and the numerator is 0, then the Sales rate is set to 0.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="35" width="804"&gt;4. If the denominator is negative and the numerator is greater than zero, then the Sales rate is set to 1,000,000.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 11:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443530#M797661</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-12-07T11:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443531#M797663</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 belive got the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum(Notifications)&amp;gt;0 and sum([Item Movement])=0,1000000,&lt;/P&gt;&lt;P&gt;if(sum(Notifications)=0 and sum([Item Movement])=0,0,&lt;/P&gt;&lt;P&gt;if(sum(Notifications)=0 and sum([Item Movement])&amp;lt;0,0,&lt;/P&gt;&lt;P&gt;if(sum(Notifications)&amp;gt;0 and sum([Item Movement])&amp;lt;0,1000000,&lt;/P&gt;&lt;P&gt;(sum(Notifications)/sum([Item Movement])*1000000)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to get same results with out using &lt;STRONG&gt;'IF'&lt;/STRONG&gt; condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be really great..&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443531#M797663</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-12-07T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443532#M797664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 09:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443532#M797664</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-12-08T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logic with set of rules</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443533#M797666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this by calculating this logic to script level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 11:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-with-set-of-rules/m-p/1443533#M797666</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2017-12-08T11:50:52Z</dc:date>
    </item>
  </channel>
</rss>

