<?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 How to put the condition? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-put-the-condition/m-p/267621#M1188754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure if I understood completely:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You wanna set the field [tax column] depending on a value you retrieve from a different field (Season?)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could use a pick / match function combination in your script to achieve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;[SeasonField],&lt;/P&gt;&lt;P&gt;pick(match([SeasonField],'RT Fare Season 1', 'RT Fare Season 2','RT Fare Season 3'),'$550','$700','$950') as [tax column]&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also alternatives, like using a mapping table and applymap, if you got lot of seasons, this would probably better to maintain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 12:06:09 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-16T12:06:09Z</dc:date>
    <item>
      <title>How to put the condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-put-the-condition/m-p/267620#M1188752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a filed called tax column. Here I need to put below three conditon into one condtion. How to make them into one condition in the designer part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Courier New'; font-size: 10pt;"&gt;RT Fare Season 1: $550 (RT = roundtrip) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Courier New'; font-size: 10pt;"&gt;RT Fare Season 2: $700 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Courier New'; font-size: 10pt;"&gt;RT Fare Season 3: $950&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 10:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-put-the-condition/m-p/267620#M1188752</guid>
      <dc:creator>siva_boggarapu</dc:creator>
      <dc:date>2011-09-16T10:16:38Z</dc:date>
    </item>
    <item>
      <title>How to put the condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-put-the-condition/m-p/267621#M1188754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure if I understood completely:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You wanna set the field [tax column] depending on a value you retrieve from a different field (Season?)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could use a pick / match function combination in your script to achieve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;[SeasonField],&lt;/P&gt;&lt;P&gt;pick(match([SeasonField],'RT Fare Season 1', 'RT Fare Season 2','RT Fare Season 3'),'$550','$700','$950') as [tax column]&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also alternatives, like using a mapping table and applymap, if you got lot of seasons, this would probably better to maintain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 12:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-put-the-condition/m-p/267621#M1188754</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-16T12:06:09Z</dc:date>
    </item>
  </channel>
</rss>

