<?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: variable help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/115003#M753002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two list boxes Country and Region contains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country - there are 60 countries&lt;/P&gt;&lt;P&gt;Region contains -&lt;SPAN style="font-size: 13.3333px;"&gt;E, W, N, S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to display values based on Specific Country selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, US and UK and Canada need to restrict all &lt;SPAN style="font-size: 13.3333px;"&gt;Regions &lt;/SPAN&gt;except Region "&lt;SPAN style="font-size: 13.3333px;"&gt;S&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;and Remaining Countries restrict only &lt;SPAN style="font-size: 13.3333px;"&gt;Region&lt;/SPAN&gt; "S"&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done in script and not working as I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Country&lt;/P&gt;&lt;P&gt;If(Match(Country,'&lt;SPAN style="font-size: 13.3333px;"&gt;US &lt;/SPAN&gt;','&lt;SPAN style="font-size: 13.3333px;"&gt;UK&lt;/SPAN&gt;','Canada'), Pick(Match(Region,'S'),Region) ,&lt;/P&gt;&lt;P&gt;If(Match(Country, all remaining countries except UK,US and Canada),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Pick(Match(Region,'N','E','W'),Region,&lt;SPAN style="font-size: 13.3333px;"&gt;Region,&lt;SPAN style="font-size: 13.3333px;"&gt;Region&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;)) as Region&lt;/P&gt;&lt;P&gt;from &amp;lt;table&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me in this.where I made wrong..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 08:29:28 GMT</pubDate>
    <dc:creator>satishqlik</dc:creator>
    <dc:date>2018-10-18T08:29:28Z</dc:date>
    <item>
      <title>variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/114998#M752997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;Please help me in this scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;I have a Country table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;Here I need to store few of Countries into one variable and remaining into another variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;For example, table contains 75 countries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;#Create Variable1 for 25 Countries;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;#Create Variable2 for 50 Countries ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino; font-size: 13.3333px;"&gt;How to achieve this requirement??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;I've tried with Concat to store all Countries into the variable&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;Concat(Distinct Country,',') as Country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;Resident&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;Group by Country;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&lt;STRONG&gt;Let _VallCountry=Peek('Country');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;But how do store specefic Countries into variable kindly help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;Thanks,&lt;/SPAN&gt;&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/variable-help/m-p/114998#M752997</guid>
      <dc:creator>satishqlik</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/114999#M752998</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;i don;t know your criteria for storing into the variables but you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. have one variable with all the countries (just like the one you created)&lt;/P&gt;&lt;P&gt;2. make 2 new variables one containing the first 25 and the second with the rest of them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let v1=mid(vconcat,1,Index(vconcat,',',25));&lt;/P&gt;&lt;P&gt;let v2=mid(vconcat,Index(vconcat,',',25));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 07:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-help/m-p/114999#M752998</guid>
      <dc:creator>andrei_delta</dc:creator>
      <dc:date>2018-10-18T07:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/115000#M752999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Country, Recno() as RecNo From Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Country, 1 as Flag, Concat(Country,',') as Concat Resident Table Where RecNo&amp;gt;=1 and RecNo&amp;lt;=25;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Country, 2 as Flag, Concat(Country,',') as Concat Resident Table Where RecNo&amp;gt;=26 and RecNo&amp;lt;=50;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Country, 3 as Flag, Concat(Country,',') as Concat Resident Table Where RecNo&amp;gt;=51 and RecNo&amp;lt;=75;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET Var25 = Peek('Flag',0,'Final');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET Var50 = Peek('Flag',1,'Final');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET Var75 = Peek('Flag',2,'Final');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 07:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-help/m-p/115000#M752999</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-18T07:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/115001#M753000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ultimate requirement is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write expression for conditional display values in list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have variables for both it will be easy to write condition else I need to write manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 07:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-help/m-p/115001#M753000</guid>
      <dc:creator>satishqlik</dc:creator>
      <dc:date>2018-10-18T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/115002#M753001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give as an example of what that listbox should look like? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 08:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-help/m-p/115002#M753001</guid>
      <dc:creator>andrei_delta</dc:creator>
      <dc:date>2018-10-18T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/115003#M753002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two list boxes Country and Region contains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country - there are 60 countries&lt;/P&gt;&lt;P&gt;Region contains -&lt;SPAN style="font-size: 13.3333px;"&gt;E, W, N, S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to display values based on Specific Country selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, US and UK and Canada need to restrict all &lt;SPAN style="font-size: 13.3333px;"&gt;Regions &lt;/SPAN&gt;except Region "&lt;SPAN style="font-size: 13.3333px;"&gt;S&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;and Remaining Countries restrict only &lt;SPAN style="font-size: 13.3333px;"&gt;Region&lt;/SPAN&gt; "S"&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done in script and not working as I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Country&lt;/P&gt;&lt;P&gt;If(Match(Country,'&lt;SPAN style="font-size: 13.3333px;"&gt;US &lt;/SPAN&gt;','&lt;SPAN style="font-size: 13.3333px;"&gt;UK&lt;/SPAN&gt;','Canada'), Pick(Match(Region,'S'),Region) ,&lt;/P&gt;&lt;P&gt;If(Match(Country, all remaining countries except UK,US and Canada),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Pick(Match(Region,'N','E','W'),Region,&lt;SPAN style="font-size: 13.3333px;"&gt;Region,&lt;SPAN style="font-size: 13.3333px;"&gt;Region&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;)) as Region&lt;/P&gt;&lt;P&gt;from &amp;lt;table&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me in this.where I made wrong..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 08:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-help/m-p/115003#M753002</guid>
      <dc:creator>satishqlik</dc:creator>
      <dc:date>2018-10-18T08:29:28Z</dc:date>
    </item>
  </channel>
</rss>

