<?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: where clause inside if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841770#M1021383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for trying to help Robert, Anbu Cheliyan helped me solve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 17:05:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-02T17:05:30Z</dc:date>
    <item>
      <title>where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841758#M1021371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a small piece of code which basically checks if the question is 2 or 3 and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the question is 3, it saves the corresponding answer as Final answer.&lt;/P&gt;&lt;P&gt;What I need is if the question is 2, it shows test for now but&amp;nbsp; I would still like to save the Final answer as whatever was answer for question 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can achieve this? Any help will be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataPoint, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Question=3,Answer,'test' ) as [Final Answer] &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vQVDLocation)DataPointAnswerChoice.qvd&lt;/P&gt;&lt;P&gt;(qvd) where match(Question,2,3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pseudo code is something along below lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( question =3, answer, ( answer where question would have been 3) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841758#M1021371</guid>
      <dc:creator />
      <dc:date>2015-04-01T23:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841759#M1021372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe firstsortedvalue is the answer&lt;/P&gt;&lt;P&gt;How is your data structured.&lt;/P&gt;&lt;P&gt;Could you post an examples?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841759#M1021372</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-01T23:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841760#M1021373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to save the answer from question 3 as the answer for question 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841760#M1021373</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-04-01T23:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841761#M1021374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841761#M1021374</guid>
      <dc:creator />
      <dc:date>2015-04-01T23:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841762#M1021375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, i'll look up firstsortedvalue. The data structure is complex and I do a lot of manipulations but basically it has a column to note the questions and answers as shown above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 00:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841762#M1021375</guid>
      <dc:creator />
      <dc:date>2015-04-02T00:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841763#M1021376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the common field between rows where Question is 2 or 3?&lt;/P&gt;&lt;P&gt;Does both rows have same datapoint?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 05:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841763#M1021376</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-02T05:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841764#M1021377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Data Point is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 05:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841764#M1021377</guid>
      <dc:creator />
      <dc:date>2015-04-02T05:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841765#M1021378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If DataPoint is same and if you assign Answer of Question=3 to Question=2, both the rows will have same values as you have only two fields selected in Load statement. Then why do you need to assign &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Answer of Question=3 to Question=2?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 05:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841765#M1021378</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-02T05:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841766#M1021379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually have more statements like assigning the score and time stamp. I just copied the part where I assign value to Final Answer. I also have series of load statements written when question equals to 4, 5 etc,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 05:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841766#M1021379</guid>
      <dc:creator />
      <dc:date>2015-04-02T05:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841767#M1021380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post some of your data to better understand your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 05:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841767#M1021380</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-02T05:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841768#M1021381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tbl:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD distinct&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;&amp;nbsp; DataPoint,&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;&amp;nbsp; if (Question=3,Answer,'test' ) as Answer3,&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;&amp;nbsp; Question&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vQVDLocation)DataPointAnswerChoice.qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(qvd) where match(Question,2,3);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Join(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Tbl)&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;LOAD &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;&amp;nbsp; DataPoint,&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;&amp;nbsp; 2 As Question,&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;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Answer As Answer2&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;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vQVDLocation)DataPointAnswerChoice.qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(qvd) where Question=3;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Final:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if (Question=3,Answer3,Answer2 ) as [Final Answer] Resident Tbl;&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table Tbl;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 05:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841768#M1021381</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-02T05:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841769#M1021382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much anbu cheliyan. That fix worked like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 17:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841769#M1021382</guid>
      <dc:creator />
      <dc:date>2015-04-02T17:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: where clause inside if statement</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841770#M1021383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for trying to help Robert, Anbu Cheliyan helped me solve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 17:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-inside-if-statement/m-p/841770#M1021383</guid>
      <dc:creator />
      <dc:date>2015-04-02T17:05:30Z</dc:date>
    </item>
  </channel>
</rss>

