<?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: How to make a field based on a condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-a-field-based-on-a-condition/m-p/651265#M238189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was exactly what I needed thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Aug 2014 17:39:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-10T17:39:42Z</dc:date>
    <item>
      <title>How to make a field based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-field-based-on-a-condition/m-p/651263#M238187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a dashboard whose datamodel has just one fact table where all the fields are located..I want to create a field named [displayregionflag] which will store a value 'Y' when the following condition is true&lt;/P&gt;&lt;P&gt;WHERE REGION_NAME IN ('AMS', 'EMEA', 'APJ')&lt;/P&gt;&lt;P&gt;and 'N' when not true &lt;/P&gt;&lt;P&gt;is this possible? if yes how?&lt;/P&gt;&lt;P&gt;if yes do I need to create a new script tab and write the code and concatenate it or something with the fact table?&lt;/P&gt;&lt;P&gt;In the end I would like to have the following result in a tablebox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Region_Name&amp;nbsp; displayregionflag&lt;/P&gt;&lt;P&gt;ams&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;emea&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;apj&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;others&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 02:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-field-based-on-a-condition/m-p/651263#M238187</guid>
      <dc:creator />
      <dc:date>2014-08-10T02:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-field-based-on-a-condition/m-p/651264#M238188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's better to create a field in the script (Back end). Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(REGION_NAME,'AMS', 'EMEA', 'APJ'),'Y','N') AS [displayregionflag]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to create a new tab for this.&lt;/P&gt;&lt;P&gt;Just write this the code in the same table from where you are using REGION_NAME field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can also, do this in front end:&lt;/P&gt;&lt;P&gt;Use calculated dimension:&lt;/P&gt;&lt;P&gt;if(Match(REGION_NAME,'AMS', 'EMEA', 'APJ'),'Y','N')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 04:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-field-based-on-a-condition/m-p/651264#M238188</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-08-10T04:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-field-based-on-a-condition/m-p/651265#M238189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was exactly what I needed thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 17:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-field-based-on-a-condition/m-p/651265#M238189</guid>
      <dc:creator />
      <dc:date>2014-08-10T17:39:42Z</dc:date>
    </item>
  </channel>
</rss>

