<?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 Passing current selection from list box to a variable  used in straighttable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-current-selection-from-list-box-to-a-variable-used-in/m-p/273481#M1187648</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;vCurrentYear=GetFieldSelections(Year)&lt;SPAN style="color: #800080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For current Year Selection:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿sum({$&amp;lt;CAMPAIGNYEAR = {$(vCurrentYear)},TrackParm.CAMPAIGNSTATUS = {"F"},TrackParm.CAMPAIGNACCOUNT = {"18"},TrackParm.CAMPAIGNTYPE= {"empl"}&amp;gt;}TrackParm.NUMBEROFDONORS))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2011 10:26:30 GMT</pubDate>
    <dc:creator>rahulgupta</dc:creator>
    <dc:date>2011-08-16T10:26:30Z</dc:date>
    <item>
      <title>Passing current selection from list box to a variable  used in straighttable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-current-selection-from-list-box-to-a-variable-used-in/m-p/273480#M1187647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!I was hoping if i could get some assistance regarding this requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pass selected values from list box to&amp;nbsp; variable being&amp;nbsp; used in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;lets say the label I'm using is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = vCurrentYear &amp;amp; ' '&amp;amp; 'Donors'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pass values from a listbox called campaignyear which contains values from 2007 to 2011. to the variable (vCurrentYear).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using qlikview version 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression for column 2010 is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CAMPAIGNYEAR = {$(=num(vCurrentYear))},TrackParm.CAMPAIGNSTATUS = {"F"},TrackParm.CAMPAIGNACCOUNT = {"18"},TrackParm.CAMPAIGNTYPE= {"empl"}&amp;gt;}TrackParm.NUMBEROFDONORS))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression for column 2009 is :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CAMPAIGNYEAR = {$(=num(vCurrentYear -1))},TrackParm.CAMPAIGNSTATUS = {"F"},TrackParm.CAMPAIGNACCOUNT = {"18"},TrackParm.CAMPAIGNTYPE= {"empl"}&amp;gt;}TrackParm.NUMBEROFDONORS)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I choose year 2008 , the 2 colomn expressions must show me sum of sales for year 2008 and 2007.&lt;/P&gt;&lt;P&gt;&amp;nbsp; if i choose 2011 , i need the expresssion to show me sum of sales for 2011 and 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swarup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 19:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-current-selection-from-list-box-to-a-variable-used-in/m-p/273480#M1187647</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-08-15T19:11:39Z</dc:date>
    </item>
    <item>
      <title>Passing current selection from list box to a variable  used in straighttable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-current-selection-from-list-box-to-a-variable-used-in/m-p/273481#M1187648</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;vCurrentYear=GetFieldSelections(Year)&lt;SPAN style="color: #800080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For current Year Selection:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿sum({$&amp;lt;CAMPAIGNYEAR = {$(vCurrentYear)},TrackParm.CAMPAIGNSTATUS = {"F"},TrackParm.CAMPAIGNACCOUNT = {"18"},TrackParm.CAMPAIGNTYPE= {"empl"}&amp;gt;}TrackParm.NUMBEROFDONORS))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 10:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-current-selection-from-list-box-to-a-variable-used-in/m-p/273481#M1187648</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2011-08-16T10:26:30Z</dc:date>
    </item>
    <item>
      <title>Passing current selection from list box to a variable  used in straighttable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-current-selection-from-list-box-to-a-variable-used-in/m-p/273482#M1187649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The solution you gave is perfect, I can't thank you enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swarup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 13:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-current-selection-from-list-box-to-a-variable-used-in/m-p/273482#M1187649</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-08-16T13:42:54Z</dc:date>
    </item>
  </channel>
</rss>

