<?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: if statement problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741672#M264840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain your requirement and post expected output in Listbox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 12:02:47 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-03-04T12:02:47Z</dc:date>
    <item>
      <title>if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741671#M264839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have field unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Unit&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;USA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CANADA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CHINA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;JAPAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;INDIA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;STRONG&gt;a. &lt;/STRONG&gt;Operational Americas: Operating units – Only (USA , Canada )&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;b. &lt;/STRONG&gt;Operational International: Operating units – Not (USA, Canada, China , Japan)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;c. &lt;/STRONG&gt;Operational Global: Operating Units – Not (China, Japan)&lt;/LI&gt;&lt;/OL&gt;&lt;LI&gt;how to achieve this in list box &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 11:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741671#M264839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T11:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741672#M264840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain your requirement and post expected output in Listbox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741672#M264840</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-04T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741673#M264841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Unit&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Operational Americas&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Operational International&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Operational Global&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the above out put sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i select &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 15px;"&gt;Operational Americas , USA and CANADA should show&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: Calibri, sans-serif;"&gt;if i select Operational International, INDIA Only should show&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: Calibri, sans-serif;"&gt;if i select&amp;nbsp; &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 15px;"&gt;Operational Global, USA,CANADA,INDIA Should show&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: Calibri, sans-serif;"&gt;List box should show only above output sample&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741673#M264841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741674#M264842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new field Operational Group. Add this to the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14254720201405146" jivemacro_uid="_14254720201405146"&gt;
&lt;P&gt;Operational_Groups:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Operational Group, Unit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Operational Americas, USA&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Operational Americas, CANADA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Operational International, INDIA&lt;/P&gt;
&lt;P&gt;Operational Global, USA&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Operational Global, CANADA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Operational Global, INDIA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Reload the document.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Add a listbox with the new field Operational Group.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741674#M264842</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-04T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741675#M264843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Unit&lt;/P&gt;&lt;P&gt;USA&lt;/P&gt;&lt;P&gt;CANADA&lt;/P&gt;&lt;P&gt;CHINA&lt;/P&gt;&lt;P&gt;JAPAN&lt;/P&gt;&lt;P&gt;INDIA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Oper&lt;/P&gt;&lt;P&gt;Operational Americas&lt;/P&gt;&lt;P&gt;Operational International&lt;/P&gt;&lt;P&gt;Operational Global&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79860_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/79861_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetFieldSelections(Oper)='Operational Americas','Only (USA , Canada )',&lt;/P&gt;&lt;P&gt;if(GetFieldSelections(Oper)='Operational International','Not (USA, Canada, China , Japan)',&lt;/P&gt;&lt;P&gt;if(GetFieldSelections(Oper)='Operational Global','Not (China, Japan)')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741675#M264843</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-03-04T12:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741676#M264844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could write an expression in listbox: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scroll to the end of the fields and select expression, in edit box put the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Unit = 'USA' or Unit = 'Canada', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Operational Americas&lt;/SPAN&gt;', &lt;/P&gt;&lt;P&gt;If( Unit = 'India', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Operational International&lt;/SPAN&gt;', &lt;/P&gt;&lt;P&gt;If( Unit &amp;lt;&amp;gt; 'Japan' and Unit &amp;lt;&amp;gt; 'China' , '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Operational Global&lt;/SPAN&gt;')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741676#M264844</guid>
      <dc:creator />
      <dc:date>2015-03-04T12:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741677#M264845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Write the below code in script level then u can archive u r desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Unit='USA' or Unit='CANADA','Operational Americas',&lt;BR /&gt;If(Unit&amp;lt;&amp;gt;'USA'or Unit&amp;lt;&amp;gt;'CANADA' or Unit&amp;lt;&amp;gt;'CHINA'or Unit='JAPAN','Operational International',&lt;BR /&gt;If(Unit&amp;lt;&amp;gt;'CHINA'or Unit='JAPAN','Operational Global'))) as NEWUNIIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 13:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741677#M264845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T13:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741678#M264846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Thanks for your time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 40 + units in my Database ,which option is gud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline is working&amp;nbsp; fine&lt;/P&gt;&lt;P&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>Wed, 04 Mar 2015 13:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741678#M264846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T13:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741679#M264847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not have mapping between those columns it will be hard to find ideal solution.&lt;/P&gt;&lt;P&gt;Gysbert's solution is most dynamic from all of those suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741679#M264847</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-03-04T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: if statement problem</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741680#M264848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GURUS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your Time,I implemented Gysbert methods,I am&amp;nbsp; able to achieve desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-problem/m-p/741680#M264848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T13:27:18Z</dc:date>
    </item>
  </channel>
</rss>

