<?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: use getfieldselections to assign multiple values to another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548859#M1144647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by expression level by utilizing set analysis&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;bm_journey type = journey_type &amp;gt;} FieldToSum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It requires that at least one value is selected in journey_type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 13:22:10 GMT</pubDate>
    <dc:creator>jfkinspari</dc:creator>
    <dc:date>2013-08-29T13:22:10Z</dc:date>
    <item>
      <title>use getfieldselections to assign multiple values to another field</title>
      <link>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548857#M1144645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 2 fields journey_type and bm_journey type.&lt;/P&gt;&lt;P&gt;whenever a user select value/values in journey type, i want the same values to be selected in bm_journey type.&lt;/P&gt;&lt;P&gt;All is well when only one value need to be assigned.&lt;/P&gt;&lt;P&gt;but when multiple value is selected in field, it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used both triggers and macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trigger : for journey type-&amp;gt; on select and change -&amp;gt; select in field -&amp;gt; bm journey_type -&amp;gt; getfieldselections(journey_type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in MACRO as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("bm_journey_type").Select ActiveDocument.Evaluate("Getfieldselections(journey_type)"), True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest whats wrong or some alternate methods to achieve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548857#M1144645</guid>
      <dc:creator />
      <dc:date>2013-08-29T13:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: use getfieldselections to assign multiple values to another field</title>
      <link>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548858#M1144646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you can try in your trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select in field = bm_journey type&lt;/P&gt;&lt;P&gt;='('&amp;amp; Concat(getfieldselections(journey_type),'|') &amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Value1|Value2|Value3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548858#M1144646</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2013-08-29T13:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: use getfieldselections to assign multiple values to another field</title>
      <link>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548859#M1144647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by expression level by utilizing set analysis&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;bm_journey type = journey_type &amp;gt;} FieldToSum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It requires that at least one value is selected in journey_type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548859#M1144647</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2013-08-29T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: use getfieldselections to assign multiple values to another field</title>
      <link>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548860#M1144648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi attach is an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548860#M1144648</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2013-08-29T13:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: use getfieldselections to assign multiple values to another field</title>
      <link>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548861#M1144649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i tried this code,&lt;/P&gt;&lt;P&gt;it works for single values but not for multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also my use of this function is to compare two set of tables , of which one has journey_type and one set of values and the other having bm_journey_type.&lt;/P&gt;&lt;P&gt;And each of fields can have 3 distinct values one_way, r_trip and multi_city&lt;/P&gt;&lt;P&gt;in your code also, when only one is selected, the values are selected in bm_journey_type, &lt;/P&gt;&lt;P&gt;but when 2 of them say oneway and rtrip are selected, its not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any modificaitons???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548861#M1144649</guid>
      <dc:creator />
      <dc:date>2013-08-29T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: use getfieldselections to assign multiple values to another field</title>
      <link>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548862#M1144650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, remove de function getfieldselections().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp; Concat(journey_type,'|') &amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-getfieldselections-to-assign-multiple-values-to-another/m-p/548862#M1144650</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2013-08-29T13:59:44Z</dc:date>
    </item>
  </channel>
</rss>

