<?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 Put multiple field selections into a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Put-multiple-field-selections-into-a-variable/m-p/1618533#M734290</link>
    <description>&lt;P&gt;Hi experts!&lt;BR /&gt;Hope you have the answer for my question for QlikView a Chart.&lt;/P&gt;&lt;P&gt;Background: I Need a chart with three graphs, each combining a group of customers. The grouping should be dynamic.&lt;/P&gt;&lt;P&gt;My solution was to create three variables, vGroupSel1, vGroupSel2 and vGroupSel3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to set the variables I use three buttons. I select multiple names of a field called &lt;STRONG&gt;GroupSel&lt;/STRONG&gt;.&lt;BR /&gt;Then I press&amp;nbsp;button1 which puts&amp;nbsp;the selected names into&amp;nbsp;the variable &amp;nbsp;vGroupSel1, etc.&lt;/P&gt;&lt;P&gt;Currently I do that with following Button-Action :&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;=&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39)&amp;amp;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;GetFieldSelections&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;GroupSel&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39)&amp;amp;','&amp;amp;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39))&amp;amp;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#008000"&gt;//&amp;nbsp;CHR(39) fügt ein Aposthroph ein // CHR(39) = '&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Action.GIF" style="width: 551px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18145iC693D95D513BC7E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Action.GIF" alt="Action.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works perfect as long as I have&lt;STRONG&gt; less then 6 customers &lt;/STRONG&gt;selected. The variable then shows following content:&lt;BR /&gt;&lt;BR /&gt;vGroupSel1 = 'Customer A', 'Customer B', 'Customer C'&lt;BR /&gt;&lt;BR /&gt;The chart is working fine, too.&lt;/P&gt;&lt;P&gt;But as soon as I select &lt;STRONG&gt;more than 6 field names&lt;/STRONG&gt;, what happens is, the variable content changes to:&lt;/P&gt;&lt;P&gt;vGroupSel1 = '7 of 20'&lt;/P&gt;&lt;P&gt;...with the concequence that the chart is no longer working. Of course, the field Name "7 of 20" is no valid field name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variablename.GIF" style="width: 794px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18146iDBB0CDA9F6FB7766/image-size/large?v=v2&amp;amp;px=999" role="button" title="variablename.GIF" alt="variablename.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to change the behavior of QV to rather show all names selected instead of '7 of 20' or '9 of 20'&amp;nbsp; etc?&lt;/P&gt;&lt;P&gt;Or is there any other smart way of creating flexible Graphs as described above?&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:10:06 GMT</pubDate>
    <dc:creator>f1234567</dc:creator>
    <dc:date>2024-11-16T20:10:06Z</dc:date>
    <item>
      <title>Put multiple field selections into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Put-multiple-field-selections-into-a-variable/m-p/1618533#M734290</link>
      <description>&lt;P&gt;Hi experts!&lt;BR /&gt;Hope you have the answer for my question for QlikView a Chart.&lt;/P&gt;&lt;P&gt;Background: I Need a chart with three graphs, each combining a group of customers. The grouping should be dynamic.&lt;/P&gt;&lt;P&gt;My solution was to create three variables, vGroupSel1, vGroupSel2 and vGroupSel3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to set the variables I use three buttons. I select multiple names of a field called &lt;STRONG&gt;GroupSel&lt;/STRONG&gt;.&lt;BR /&gt;Then I press&amp;nbsp;button1 which puts&amp;nbsp;the selected names into&amp;nbsp;the variable &amp;nbsp;vGroupSel1, etc.&lt;/P&gt;&lt;P&gt;Currently I do that with following Button-Action :&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;=&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39)&amp;amp;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;GetFieldSelections&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;GroupSel&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39)&amp;amp;','&amp;amp;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39))&amp;amp;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;chr&lt;/FONT&gt;&lt;FONT size="1"&gt;(39)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#008000"&gt;//&amp;nbsp;CHR(39) fügt ein Aposthroph ein // CHR(39) = '&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Action.GIF" style="width: 551px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18145iC693D95D513BC7E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Action.GIF" alt="Action.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works perfect as long as I have&lt;STRONG&gt; less then 6 customers &lt;/STRONG&gt;selected. The variable then shows following content:&lt;BR /&gt;&lt;BR /&gt;vGroupSel1 = 'Customer A', 'Customer B', 'Customer C'&lt;BR /&gt;&lt;BR /&gt;The chart is working fine, too.&lt;/P&gt;&lt;P&gt;But as soon as I select &lt;STRONG&gt;more than 6 field names&lt;/STRONG&gt;, what happens is, the variable content changes to:&lt;/P&gt;&lt;P&gt;vGroupSel1 = '7 of 20'&lt;/P&gt;&lt;P&gt;...with the concequence that the chart is no longer working. Of course, the field Name "7 of 20" is no valid field name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variablename.GIF" style="width: 794px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18146iDBB0CDA9F6FB7766/image-size/large?v=v2&amp;amp;px=999" role="button" title="variablename.GIF" alt="variablename.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to change the behavior of QV to rather show all names selected instead of '7 of 20' or '9 of 20'&amp;nbsp; etc?&lt;/P&gt;&lt;P&gt;Or is there any other smart way of creating flexible Graphs as described above?&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-multiple-field-selections-into-a-variable/m-p/1618533#M734290</guid>
      <dc:creator>f1234567</dc:creator>
      <dc:date>2024-11-16T20:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Put multiple field selections into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Put-multiple-field-selections-into-a-variable/m-p/1618587#M734291</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Instead of using this&amp;nbsp;&lt;/P&gt;&lt;P&gt;=chr(39)&amp;amp;GetFieldSelections(GroupSel,chr(39)&amp;amp;','&amp;amp;chr(39))&amp;amp;chr(39)&lt;/P&gt;&lt;P&gt;Try this in your buttons&lt;/P&gt;&lt;P&gt;=Concat(DISTINCT chr(39)&amp;amp;&lt;SPAN&gt;GroupSel&lt;/SPAN&gt;&amp;amp;chr(39), ', ')&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 03:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-multiple-field-selections-into-a-variable/m-p/1618587#M734291</guid>
      <dc:creator>Alexis_Tan</dc:creator>
      <dc:date>2019-08-30T03:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Put multiple field selections into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Put-multiple-field-selections-into-a-variable/m-p/1618670#M734292</link>
      <description>&lt;P&gt;Thanks, Alex!! That's it. Would you mind to shortly explain why this works ?&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 08:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-multiple-field-selections-into-a-variable/m-p/1618670#M734292</guid>
      <dc:creator>f1234567</dc:creator>
      <dc:date>2019-08-30T08:14:54Z</dc:date>
    </item>
  </channel>
</rss>

