<?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 Change displayed values in a List Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179220#M46154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it, thanks!&lt;/P&gt;&lt;P&gt;Placements:&lt;BR /&gt;Load *,&lt;BR /&gt;If (RecallFileReceived = 1,'Inactive','Active') as PlcmtStatusDisplayLong;&lt;BR /&gt;ODBC CONNECT TO [MS Access Database;DBQ=J:\DATABASE\AgencyDatabase_be.accdb];&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Placement;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Mar 2010 18:09:46 GMT</pubDate>
    <dc:creator>jackm75</dc:creator>
    <dc:date>2010-03-12T18:09:46Z</dc:date>
    <item>
      <title>Change displayed values in a List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179216#M46150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to both these boards and QlikView programming, so forgive me if this is very simple...&lt;/P&gt;&lt;P&gt;I have a list box which get's it's values from a filed which is just True or False... 0 or 1.&lt;/P&gt;&lt;P&gt;Currenly, the list displays 0 and 1 as the selections. I would rather it dispay "Active" for 0 and "Inactive" for 1.&lt;/P&gt;&lt;P&gt;I haven't figured out how to do that. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 16:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179216#M46150</guid>
      <dc:creator>jackm75</dc:creator>
      <dc:date>2010-03-12T16:52:01Z</dc:date>
    </item>
    <item>
      <title>Change displayed values in a List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179217#M46151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would do that translation on load time:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;field as MyBoolean, // 0 or 1&lt;BR /&gt;if(field = 0,'Inactive','Active') as MyBooleanLong&lt;BR /&gt;...&lt;BR /&gt;FROM ...&lt;/P&gt;&lt;P&gt;In the report you show MyBooleanLong rather than MyBoolean.&lt;/P&gt;&lt;P&gt;hth,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 16:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179217#M46151</guid>
      <dc:creator />
      <dc:date>2010-03-12T16:55:47Z</dc:date>
    </item>
    <item>
      <title>Change displayed values in a List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179218#M46152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply. I'm having issues with the Load statement (again, I'm new).&lt;/P&gt;&lt;P&gt;Here's what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Placements:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;ODBC&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;CONNECT&lt;/B&gt; &lt;B&gt;TO&lt;/B&gt; &lt;P&gt;[MS Access Database;DBQ=J:\Database\AgencyDatabase_be.accdb];&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;SELECT&lt;/B&gt; &lt;P&gt;AcknowAttachment,&lt;/P&gt;&lt;P&gt;AcknowReceived,&lt;/P&gt;&lt;P&gt;AgencyID,&lt;/P&gt;&lt;P&gt;Clients,&lt;/P&gt;&lt;P&gt;ContingencyRate,&lt;/P&gt;&lt;P&gt;`Count`,&lt;/P&gt;&lt;P&gt;InputDate,&lt;/P&gt;&lt;P&gt;NoOfPriorPlacements,&lt;/P&gt;&lt;P&gt;Notes,&lt;/P&gt;&lt;P&gt;Owner,&lt;/P&gt;&lt;P&gt;PlacedAmount,&lt;/P&gt;&lt;P&gt;PlacementDate,&lt;/P&gt;&lt;P&gt;PlacementID,&lt;/P&gt;&lt;P&gt;RecallCount,&lt;/P&gt;&lt;P&gt;RecallDate,&lt;/P&gt;&lt;P&gt;RecallFileReceived,&lt;/P&gt;&lt;P&gt;UserID&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Placement;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;RecallFileReceived&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;as&lt;/B&gt; PlcmntStsDisplay, &lt;P&gt;&lt;B&gt;// 0 or 1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(RecallFileReceived = 0,'Inactive','Active') &lt;B&gt;as&lt;/B&gt; &lt;P&gt;PlcmntStsDisplayLong&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;From&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Placements;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Cannot open file 'C:\Documents and Settings\jmahoney\My Documents\NCA\Reports\Database\QlikView\Placements'&lt;BR /&gt;Load&lt;BR /&gt;RecallFileReceived as PlcmntStsDisplay,&lt;BR /&gt;if(RecallFileReceived = 0,'Inactive','Active') as PlcmntStsDisplayLong&lt;BR /&gt;From Placements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 17:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179218#M46152</guid>
      <dc:creator>jackm75</dc:creator>
      <dc:date>2010-03-12T17:28:15Z</dc:date>
    </item>
    <item>
      <title>Change displayed values in a List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179219#M46153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the logic is slightly different:&lt;/P&gt;&lt;P&gt;ODBC Connect ..... ;&lt;/P&gt;&lt;P&gt;Placements_IN:&lt;BR /&gt;SQL SELECT .... FROM .... WHERE ..... ;&lt;/P&gt;&lt;P&gt;// now you have a table Placements which holds all the data from the Select&lt;BR /&gt;// the next step is to reload the data to do some manipulations.&lt;BR /&gt;// For simplicity, let's say you loaded fields A,B and C&lt;/P&gt;&lt;P&gt;Placements:&lt;BR /&gt;noconcatenate LOAD&lt;BR /&gt;*, //this loads A,B,C&lt;BR /&gt;if(A=0,'F','T') as D&lt;BR /&gt;resident Placements_IN;&lt;/P&gt;&lt;P&gt;drop table Placements_IN;&lt;/P&gt;&lt;P&gt;//done!&lt;/P&gt;&lt;P&gt;Just to confuse you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ... this can be done in 1 step:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Placements:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;if(A=0,'F','T') as D&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT .... FROM ... WHERE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This loads the data from SQL and used that as input for the above(!) defined LOAD.&lt;BR /&gt;This syntax creates just the one table you need, so no drop table is required.&lt;/P&gt;&lt;P&gt;hth,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 17:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179219#M46153</guid>
      <dc:creator />
      <dc:date>2010-03-12T17:49:40Z</dc:date>
    </item>
    <item>
      <title>Change displayed values in a List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179220#M46154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it, thanks!&lt;/P&gt;&lt;P&gt;Placements:&lt;BR /&gt;Load *,&lt;BR /&gt;If (RecallFileReceived = 1,'Inactive','Active') as PlcmtStatusDisplayLong;&lt;BR /&gt;ODBC CONNECT TO [MS Access Database;DBQ=J:\DATABASE\AgencyDatabase_be.accdb];&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM Placement;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 18:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-displayed-values-in-a-List-Box/m-p/179220#M46154</guid>
      <dc:creator>jackm75</dc:creator>
      <dc:date>2010-03-12T18:09:46Z</dc:date>
    </item>
  </channel>
</rss>

