<?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: need help in if condition/case statement. ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4980#M792127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Match(HOST_TYPE, 'BB-HOSTED', 'UNKNOWN', 'MM-CONTROLLED'), HOST_TYPE, 'UNK') as HOST_TYPE&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 19:54:35 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-22T19:54:35Z</dc:date>
    <item>
      <title>need help in if condition/case statement. ?</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4978#M792125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;we have data from 2015 jan to 2017 dec , from sep 2017 new filter added called Host_type which is having 3 values called BB-HOSTED,MM-CONTROLLED,-1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;for the data from 2015 Jan to Aug 2017, no filter so we are taking HOST_TYPE filter with a defualt value called : UNKNOWN. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;now i want to replace -1 with UNK the below expression is not working - Please help UNK missing in the final filter. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOST_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'BB-HOSTED','BB-HOSTED',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOST_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'UNKNOWN','UNKNOWN',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOST_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'MM-CONTROLLED','MM-CONTROLLED',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOST_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '-1','UNK')))) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOST_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;doing this chnage at extractor level is good or in the final application is good ??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks in advance. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&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/need-help-in-if-condition-case-statement/m-p/4978#M792125</guid>
      <dc:creator>vishalgoud</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: need help in if condition/case statement. ?</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4979#M792126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it actually contain -1 as value? or is it something else... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To simplify, you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(HOST_TYPE = -1, 'UNK', HOST_TYPE) as HOST_TYPE&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 19:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4979#M792126</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-22T19:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: need help in if condition/case statement. ?</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4980#M792127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Match(HOST_TYPE, 'BB-HOSTED', 'UNKNOWN', 'MM-CONTROLLED'), HOST_TYPE, 'UNK') as HOST_TYPE&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 19:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4980#M792127</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-22T19:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: need help in if condition/case statement. ?</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4981#M792128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes Sunny&amp;nbsp; it contain -1 as a value, simply in the host type list box we can see 3 values&amp;nbsp; &lt;STRONG&gt;'BB-HOSTED', 'MM-CONTROLLED' and -1. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before aug 2017 qvds host type contains only one values that is 'UNKNOWN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in list box i used &lt;STRONG&gt;pick and macth&lt;/STRONG&gt; where it is working fine but in the selection box still we can see that -1 when we select UNK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to change it completely am thinking to do it in script level. where am trying to use the above condition which is not working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 20:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4981#M792128</guid>
      <dc:creator>vishalgoud</dc:creator>
      <dc:date>2018-01-22T20:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: need help in if condition/case statement. ?</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4982#M792129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What was your pick match statement for the list box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 20:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4982#M792129</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-22T20:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: need help in if condition/case statement. ?</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4983#M792130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOST_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'UNKNOWN','MM-CONTROLLED','BB-HOSTED','-1'),'UNKNOWN','MM-CONTROLLED','BB-HOSTED','UNK') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 20:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4983#M792130</guid>
      <dc:creator>vishalgoud</dc:creator>
      <dc:date>2018-01-22T20:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: need help in if condition/case statement. ?</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4984#M792131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try the same in the script (If it worked on the front end, I see no reason for it to not work in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Match(HOST_TYPE,'UNKNOWN','MM-CONTROLLED','BB-HOSTED','-1'),'UNKNOWN','MM-CONTROLLED','BB-HOSTED','UNK') as &lt;STRONG&gt;HOST_TYPE_NEW&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I renamed the field to HOST_TYPE_NEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a table box and add HOST_TYPE and HOST_TYPE_NEW to it and see if -1 is now UNK within HOST_TYPE_NEW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 20:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-in-if-condition-case-statement/m-p/4984#M792131</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-22T20:27:43Z</dc:date>
    </item>
  </channel>
</rss>

