<?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 Pick 2 values from 1 table to store in variable on script. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-2-values-from-1-table-to-store-in-variable-on-script/m-p/1730912#M722508</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Earlier in my script of extraction layer.&lt;/P&gt;&lt;P&gt;We have used vId&lt;SPAN&gt;=Peek('Id',0,'Table');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I want to show Id =1 then loans if its 2 then deposits.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you let me know how to do..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used this expression&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let vid= pick(Match(Id, 1,2),'deposits','loans')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After this peek or pick we have the script like as below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Select District&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From tablename&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where Id=$(vid).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In id=$(vid) I need to show 1,2. So do we need change any thing here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In this script am getting error after written pick instead of peek.&lt;/P&gt;&lt;P&gt;If I used peek it's getting only 1 in vId.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to show 1,2 both in&amp;nbsp;$(vid)&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:18:40 GMT</pubDate>
    <dc:creator>sonysree88</dc:creator>
    <dc:date>2024-11-16T18:18:40Z</dc:date>
    <item>
      <title>Pick 2 values from 1 table to store in variable on script.</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-2-values-from-1-table-to-store-in-variable-on-script/m-p/1730912#M722508</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Earlier in my script of extraction layer.&lt;/P&gt;&lt;P&gt;We have used vId&lt;SPAN&gt;=Peek('Id',0,'Table');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I want to show Id =1 then loans if its 2 then deposits.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you let me know how to do..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used this expression&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let vid= pick(Match(Id, 1,2),'deposits','loans')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After this peek or pick we have the script like as below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Select District&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From tablename&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where Id=$(vid).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In id=$(vid) I need to show 1,2. So do we need change any thing here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In this script am getting error after written pick instead of peek.&lt;/P&gt;&lt;P&gt;If I used peek it's getting only 1 in vId.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to show 1,2 both in&amp;nbsp;$(vid)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-2-values-from-1-table-to-store-in-variable-on-script/m-p/1730912#M722508</guid>
      <dc:creator>sonysree88</dc:creator>
      <dc:date>2024-11-16T18:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pick 2 values from 1 table to store in variable on script.</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-2-values-from-1-table-to-store-in-variable-on-script/m-p/1733828#M722511</link>
      <description>&lt;P&gt;Likely need to attach QVW so folks can see the data model etc. and the entire script, think it is going to be difficult for folks to respond otherwise, but I may be wrong, we'll see if my comment kicking things back out results in someone having some other ideas for you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 15:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-2-values-from-1-table-to-store-in-variable-on-script/m-p/1733828#M722511</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-06T15:21:58Z</dc:date>
    </item>
  </channel>
</rss>

