<?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 add a default value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-a-default-value/m-p/120255#M18450</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;In our script we are generating one field value using below script:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(left(bkey_bd_company,1)='#','CFN','BD') as "NEWCO id"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;NEWCO id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BD&lt;/P&gt;&lt;P&gt;CFN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now the requirement is to add another value as by default 'BARD'. so the user should be able to see values as if none of the above condition is true:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;NEWCO id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BD&lt;/P&gt;&lt;P&gt;CFN&lt;/P&gt;&lt;P&gt;BARD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2018 10:26:34 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2018-07-24T10:26:34Z</dc:date>
    <item>
      <title>How to add a default value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-default-value/m-p/120255#M18450</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;In our script we are generating one field value using below script:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(left(bkey_bd_company,1)='#','CFN','BD') as "NEWCO id"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;NEWCO id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BD&lt;/P&gt;&lt;P&gt;CFN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now the requirement is to add another value as by default 'BARD'. so the user should be able to see values as if none of the above condition is true:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;NEWCO id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BD&lt;/P&gt;&lt;P&gt;CFN&lt;/P&gt;&lt;P&gt;BARD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 10:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-default-value/m-p/120255#M18450</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2018-07-24T10:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a default value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-default-value/m-p/120256#M18451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have already defined the ELSE part in your expression and it is returning DB as default. To have another value as default, you must have at least one more condition, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have now :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;If ( XX='Cow', 'Animal', 'Not-animal')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have default third value, you would need something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;If( XX='Cow', 'Animal', If( XX='Tree', 'Tree', 'Neither animal nor tree'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 10:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-default-value/m-p/120256#M18451</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-07-24T10:50:28Z</dc:date>
    </item>
  </channel>
</rss>

