<?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 storing a value based on island table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827651#M291395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It just shows up with a string value (eg: Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 15:20:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-21T15:20:53Z</dc:date>
    <item>
      <title>Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827645#M291389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikView Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am troubleshooting an existing application and have come across this scenario:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The datamodel along with facts and dimension tables contains an &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Island table that has a &lt;/SPAN&gt;single column: _Name.&lt;/P&gt;&lt;P&gt;This column has values: Sales,Flow,Asset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A list box is used in the dashboard to show the above values from this field (_Name)&lt;/P&gt;&lt;P&gt;There is a line chart that has two dimensions: Month and ='$(vCycDim)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now based on the selection in the list box (or even a multibox having _Name field), the value for variable &lt;EM&gt;vCycDim&lt;/EM&gt; gets updated.&lt;/P&gt;&lt;P&gt;E.g if list box has 'Sales' selected, the variable &lt;EM&gt;vCycDim&lt;/EM&gt; gets the value 'Sales'. In the Variable Overview window I only see the string 'Sales' as the value for this variable. There is no expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware of GetFieldSelections function but I am not able to find out how the variable value is assigned with a selection in listbox or multibox? There is no macro or Action(as in text box or button object) that is assigning the value. Not sure how the variable is picking the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this is a very common approach and hope my explanation is clear.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nakul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827645#M291389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T15:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827646#M291390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your variable is defined with GetFieldSelections, then the function itself is telling the variable to use whatever is selected as a vCycDim. My guess is that the list box it is linked to has &lt;STRONG&gt;Always One Selected Value &lt;/STRONG&gt;option selected to make sure that user are unable to select more than one value at a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827646#M291390</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-21T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827647#M291391</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;What's the definitions of the variable &lt;EM&gt;vCycDim&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827647#M291391</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-05-21T15:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827648#M291392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the field triggers on the Triggers tab of the Document Properties window. It sounds like your variable is set by an action assigned to the OnSelect of one of the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827648#M291392</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-21T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827649#M291393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right, the list box has&lt;STRONG&gt; Always One Selected Value&lt;/STRONG&gt;. In the variable overview window, since this variable always has a string value, I am not sure what function was originally defined. If I were to create a new variable, vCycDim1 (that stores the same set of values), what should the approach be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827649#M291393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827650#M291394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use do it bunch of ways:&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;&lt;STRONG&gt;vCycDim1 = GetFieldSelections(ListBoxField)&lt;/STRONG&gt; or&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;STRONG&gt;vCycDim1 = Concat(DISTINCT ListBoxField) &lt;/STRONG&gt;or&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;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vCycDim1 = Only(ListBoxField)&lt;/STRONG&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;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think all of the above should work.&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, 21 May 2015 15:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827650#M291394</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-21T15:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827651#M291395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It just shows up with a string value (eg: Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827651#M291395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T15:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storing a value based on island table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827652#M291396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! I found a FieldEvent Trigger for this field that 'OnSelect' assigns the value to the variable. I did check the triggers tab before but must have missed it! Thanks Gysbert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-storing-a-value-based-on-island-table/m-p/827652#M291396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T15:22:59Z</dc:date>
    </item>
  </channel>
</rss>

