<?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 set display value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221332#M74154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much , now i got excactly what i was looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 18:25:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-07-13T18:25:33Z</dc:date>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221324#M74146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a column called FLAG which has 2 values 0 and 1 , i need to display a word LSF when 1 is select NON-LSF when 0 is selected from the Flag list box?&lt;/P&gt;&lt;P&gt;Do i need to include this in the query ? or can a set the display value somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 00:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221324#M74146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-13T00:07:36Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221325#M74147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean just see it in a text box or something?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(FLAG,'LSF','NON-LSF')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 00:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221325#M74147</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-13T00:55:01Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221326#M74148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no , i mean i have list box which display o and 1 values, the column Flag has values o and 1 , so when i create a list box on that column , i get values 1 and 0 , instead i want NON-LSF and LSF , I have been writing case statements , like&lt;/P&gt;&lt;P&gt;case when flag =0 then Lsf&lt;/P&gt;&lt;P&gt;when flsg = 1 then non lsf end else,&lt;/P&gt;&lt;P&gt;But how do i write this in qlikview?i tried writing this in load statements but i got syntax error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 02:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221326#M74148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-13T02:18:26Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221327#M74149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, so you want the list box itself to display LSF and NON-LSF?&lt;/P&gt;&lt;P&gt;An easy way is to put the if() statement I wrote in a list box. Select &amp;lt;expression&amp;gt; instead of the field, and then enter the if() as an expression.&lt;/P&gt;&lt;P&gt;A better way is to build your flag in the script using the dual() function, something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(your flag condition here, dual('LSF',1), dual('NON-LSF',0)) as FLAG&lt;/P&gt;&lt;P&gt;Your flag will then normally display as text (such as in a list box), but has an underlying numeric value, so you can still do things like sum(Flag) or sum(Flag*Quantity), or whatever you wanted to do with a numeric flag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 02:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221327#M74149</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-13T02:24:43Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221328#M74150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get syntax error if i add If statement in the scripts , how do we write expression for list box in the title?Please Help ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 17:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221328#M74150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-13T17:08:46Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221329#M74151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what you're asking, you select &amp;lt;expression&amp;gt; instead of the field, and then enter the if() as an expression. However, you'd probably be better off fixing your syntax error and handling it in the script. If people stopped coding and tried a new approach every time they got a syntax error, no code would ever get written.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 17:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221329#M74151</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-13T17:26:37Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221330#M74152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression with syntax below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(RFA_FLAG, dual('LSF',1), dual('NON-LSF',0)) as RFA_FLAG , and nothing is displayed in my list box...&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 17:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221330#M74152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-13T17:51:31Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221331#M74153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I've obviously confused you. In a list box, you would use the expression I gave you first:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(RFA_FLAG,'LSF','NON-LSF')&lt;/P&gt;&lt;P&gt;In SCRIPT, in the load statement where you are currently loading or creating the RFA_FLAG, you would use the other expression:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(your flag condition here, dual('LSF',1), dual('NON-LSF',0)) as RFA_FLAG&lt;/P&gt;&lt;P&gt;If you're loading the RFA_FLAG directly from your source, then your condition is just the flag itself, and again this would be in the load statement in your script:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(RFA_FLAG,dual('LSF',1),dual('NON-LSF',0)) as RFA_FLAG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 18:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221331#M74153</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-13T18:03:21Z</dc:date>
    </item>
    <item>
      <title>set display value</title>
      <link>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221332#M74154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much , now i got excactly what i was looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 18:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-display-value/m-p/221332#M74154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-13T18:25:33Z</dc:date>
    </item>
  </channel>
</rss>

