<?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: Set one whole field as an variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-one-whole-field-as-an-variable/m-p/1271502#M862097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;CarIDs:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;concat(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;car_id , '+') as &lt;SPAN style="font-size: 13.3333px;"&gt;CarIDList&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL Select Distinct car_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from Sybase_database;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Set vCarIDs = peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CarIDList&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;',0,'&lt;SPAN style="font-size: 13.3333px;"&gt;CarIDs'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2017 14:16:55 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2017-01-04T14:16:55Z</dc:date>
    <item>
      <title>Set one whole field as an variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-one-whole-field-as-an-variable/m-p/1271500#M862095</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 don't know if this is possible or if there may be another solution to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a variable to contain all id's in one field. In the example below i want all the car_id's from the sybase_table. If the field contains 3 ids, it would look like this: '123','321','546'. Reason i want this is because i will use this variable in a later SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Select "'" + car_id + "'" + "," as car_id&lt;/P&gt;&lt;P&gt;from Sybase_database;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vCar_id = 'All car_id's in on e string'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I the want to use this variable in SQL-query in a oracle_table:&lt;/P&gt;&lt;P&gt;select * from oracle_database&lt;/P&gt;&lt;P&gt;where car_id in (vCar_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-one-whole-field-as-an-variable/m-p/1271500#M862095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set one whole field as an variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-one-whole-field-as-an-variable/m-p/1271501#M862096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FilterTable:&lt;/P&gt;&lt;P&gt;SQL Select "'" + car_id + "'" + "," as car_id&lt;/P&gt;&lt;P&gt;from Sybase_database;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FilterTablerConcat:&lt;/P&gt;&lt;P&gt;load concat(car_id, ',') as car_id_concat resident FilterTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vCar_id = peek('car_id_concat', 0, 'FilterTableConcat');&lt;/P&gt;&lt;P&gt;drop tables FilterTable, FilterTableConcat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 14:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-one-whole-field-as-an-variable/m-p/1271501#M862096</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-04T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set one whole field as an variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-one-whole-field-as-an-variable/m-p/1271502#M862097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;CarIDs:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;concat(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;car_id , '+') as &lt;SPAN style="font-size: 13.3333px;"&gt;CarIDList&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL Select Distinct car_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from Sybase_database;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Set vCarIDs = peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CarIDList&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;',0,'&lt;SPAN style="font-size: 13.3333px;"&gt;CarIDs'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 14:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-one-whole-field-as-an-variable/m-p/1271502#M862097</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-04T14:16:55Z</dc:date>
    </item>
  </channel>
</rss>

