<?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 Selected value as variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146694#M25210</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;is it possible to use the value of a selected field as value.&lt;/P&gt;&lt;P&gt;eg. I have the a year field that contains years from 2000 - 2009.&lt;/P&gt;&lt;P&gt;I'd like to use the select field e.g. 2006 as a variable.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 22:14:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-12T22:14:03Z</dc:date>
    <item>
      <title>Selected value as variable</title>
      <link>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146694#M25210</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;is it possible to use the value of a selected field as value.&lt;/P&gt;&lt;P&gt;eg. I have the a year field that contains years from 2000 - 2009.&lt;/P&gt;&lt;P&gt;I'd like to use the select field e.g. 2006 as a variable.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 22:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146694#M25210</guid>
      <dc:creator />
      <dc:date>2009-06-12T22:14:03Z</dc:date>
    </item>
    <item>
      <title>Selected value as variable</title>
      <link>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146695#M25211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;I think you can do that in macro&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Suppose you have one field ref year value and you want to make receive year same as ref year.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Set Z = ActiveDocument.Fields("Reference Year")&lt;BR /&gt;ActiveDocument.Fields("Receive Year").Selectvalues Z.GetSelectedValues()&lt;/P&gt;&lt;P style="font-weight: bold"&gt;aslo ref the API guide&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Talha&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 22:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146695#M25211</guid>
      <dc:creator />
      <dc:date>2009-06-12T22:31:33Z</dc:date>
    </item>
    <item>
      <title>Selected value as variable</title>
      <link>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146696#M25212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also do this in a variable by adding the following to the variable declaration:&lt;/P&gt;&lt;P&gt;=GetFieldSelections("ReceiveYear")&lt;/P&gt;&lt;P&gt;The only potential issue is that it does some rather odd things when more than one selection is made from the same field (when I say odd, it does make sense, but it seems odd).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 22:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146696#M25212</guid>
      <dc:creator />
      <dc:date>2009-06-12T22:59:45Z</dc:date>
    </item>
    <item>
      <title>Selected value as variable</title>
      <link>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146697#M25213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear what exactly you want. If follow your question literally, the answer is to createa variable, e.g. vSelectedYear, and define it as =Year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 23:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selected-value-as-variable/m-p/146697#M25213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-12T23:36:20Z</dc:date>
    </item>
  </channel>
</rss>

