<?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: Multiple If conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424279#M807792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wallo,Thanks for the reply &lt;/P&gt;&lt;P&gt;It actually worked , i should say almost&lt;BR /&gt;if i select A or B or both i get the result thats what i want but if i select A and C or A and D and so on then also its showing the values which it should not show because A and B are one category and C and D are another &lt;BR /&gt;cross selections should not give the result &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks- sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 20:25:36 GMT</pubDate>
    <dc:creator>sravankumarkaturi</dc:creator>
    <dc:date>2017-10-24T20:25:36Z</dc:date>
    <item>
      <title>Multiple If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424277#M807790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;BR /&gt;I have a tricky situation need help&lt;BR /&gt;giving an example of my requirment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have field 'Type'&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;F&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If A or B are selected sum(current month sales)/Total sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; if A and B are selected should show combined value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;if C or D are selected sum (previous month sales)/ total sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if C and D are selected should show combined value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If E and F or both are selected there is no calculation so do nothing &lt;/P&gt;&lt;P&gt;and cross selection is done like A and C or B and D and so on do nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written something like this (please ignore bracket errors and upper/lower case) its working for only one selected value like if one of A/B is selected it works and if A and B are selected shows nothing&lt;BR /&gt;similarly if one of C/D is selected it shows value if both are selected shows nothing &lt;/P&gt;&lt;P&gt;need see individual selections and also combined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetFieldSelections([Type]) = 'A' or GetFieldSelections([Type] ) = 'B',((sum ([current month sales]))/ [Total sales]&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(GetFieldSelections([Type]) = 'c' or GetFieldSelections([Type] ) = 'D',((sum ([&lt;SPAN style="font-size: 13.3333px;"&gt;Previous Month sales]&lt;/SPAN&gt;))/Total sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;need help on this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - sravan &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/Multiple-If-conditions/m-p/1424277#M807790</guid>
      <dc:creator>sravankumarkaturi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424278#M807791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Type)&amp;gt;0,&lt;/P&gt;&lt;P&gt;if(SubStringCount(Concat(Type, '|'),'A')+SubStringCount(Concat(Type, '|'),'B')&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(sum ([current month sales])/ [Total sales],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;if(SubStringCount(Concat(Type, '|'),'C')+SubStringCount(Concat(Type, '|'),'D')&amp;gt;0,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum ([&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Previous Month sales]&lt;/SPAN&gt;)/Total sales)),)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 17:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424278#M807791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424279#M807792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wallo,Thanks for the reply &lt;/P&gt;&lt;P&gt;It actually worked , i should say almost&lt;BR /&gt;if i select A or B or both i get the result thats what i want but if i select A and C or A and D and so on then also its showing the values which it should not show because A and B are one category and C and D are another &lt;BR /&gt;cross selections should not give the result &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks- sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424279#M807792</guid>
      <dc:creator>sravankumarkaturi</dc:creator>
      <dc:date>2017-10-24T20:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424280#M807793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a field in the data that groups the Types together?&amp;nbsp; Something like &lt;/P&gt;&lt;P&gt;Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you would just add a check for that.&amp;nbsp; Somethiing like&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(GetSelectedCount(Type)&amp;gt;0 and GetPossibleCount(Group)=1,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(SubStringCount(Concat(Type, '|'),'A')+SubStringCount(Concat(Type, '|'),'B')&amp;gt;0,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;(sum ([current month sales])/ [Total sales],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(SubStringCount(Concat(Type, '|'),'C')+SubStringCount(Concat(Type, '|'),'D')&amp;gt;0,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum ([&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Previous Month sales]&lt;/SPAN&gt;)/Total sales)),)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424280#M807793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424281#M807794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but where to write this expression with condition ? &lt;/P&gt;&lt;P&gt;In calculation condition inside general tab or in expression tab ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424281#M807794</guid>
      <dc:creator>dhavalvyas</dc:creator>
      <dc:date>2017-10-25T06:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424282#M807795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends how you want to see it.&amp;nbsp; I would think you could put it in the expression tab as an expression.&amp;nbsp; Or it could be in a text object.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Or you could put it in an expression and a condition to only show something when rule is met.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 15:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-conditions/m-p/1424282#M807795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-25T15:03:12Z</dc:date>
    </item>
  </channel>
</rss>

