<?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: how to pass the current selection to variable. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297981#M404919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I am still not sure what you are trying to do... but if it meets your requirement, who am I to complain &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 11:06:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-22T11:06:15Z</dc:date>
    <item>
      <title>how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297972#M404910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am unable to pass the current selections to variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a country column and i want to pass the values based on current selection to variable.&lt;/P&gt;&lt;P&gt;like if i select any country in the country list box it should pass the country variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried below variable it is not working&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCountry = GetFieldSelections(Country)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;and the above variable i need to use below set expression like below mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;type={'customer'},country={$(vCountry)}&amp;gt;})sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any can help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 12:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297972#M404910</guid>
      <dc:creator>venkatbza</dc:creator>
      <dc:date>2017-06-15T12:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297973#M404911</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;Try this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCountry = GetFieldSelections(Country,'","')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;type={'customer'},country={"$(vCountry)"}&amp;gt;})sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 12:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297973#M404911</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-06-15T12:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297974#M404912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use as below&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Variable&lt;/P&gt;&lt;P&gt;vCountry =IF(GetSelectedCount(Country),CHR(39)&amp;amp;Concat(DISTINCT Country,CHR(39) &amp;amp; ',' &amp;amp; CHR(39))&amp;amp;CHR(39),'')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;type = {'customer'},Country={$(vCountry)}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 12:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297974#M404912</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-06-15T12:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297975#M404913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But why do you even need it? QlikView by default will show you the data for the selected Country if you use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;type={'customer'}&amp;gt;}) sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 12:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297975#M404913</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-15T12:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297976#M404914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct Sunny, But my requirement is different,&lt;/P&gt;&lt;P&gt;I need to create one more variable using below set expression. like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vCountryCalc =Sum({&amp;lt;type = {'customer'},Country={$(vCountry)}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and this variable i need to use in my chart expression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 15:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297976#M404914</guid>
      <dc:creator>venkatbza</dc:creator>
      <dc:date>2017-06-15T15:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297977#M404915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish,&lt;/P&gt;&lt;P&gt;it is working perfectly like what i am expecting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 15:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297977#M404915</guid>
      <dc:creator>venkatbza</dc:creator>
      <dc:date>2017-06-15T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297978#M404916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks Kaushik, &lt;SPAN style="font-size: 13.3333px;"&gt;for you quick response.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 15:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297978#M404916</guid>
      <dc:creator>venkatbza</dc:creator>
      <dc:date>2017-06-15T15:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297979#M404917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But once again, why won't this work?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;vCountryCalc =Sum({&amp;lt;type = {'customer'}}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 15:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297979#M404917</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-15T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297980#M404918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny, I need a static values for the selected country, that's why i have to create a variable like below &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vCountryCalc =Sum({&amp;lt;type = {'customer'},Country={$(vCountry)}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 11:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297980#M404918</guid>
      <dc:creator>venkatbza</dc:creator>
      <dc:date>2017-06-22T11:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass the current selection to variable.</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297981#M404919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I am still not sure what you are trying to do... but if it meets your requirement, who am I to complain &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 11:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-pass-the-current-selection-to-variable/m-p/1297981#M404919</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-22T11:06:15Z</dc:date>
    </item>
  </channel>
</rss>

