<?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: Set Analysis with subfield and getfieldselections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671568#M1052258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some little changes&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FinYear={'$(=trim(subfield(GetFieldSelections(FinYear),',',2)))'}&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69400_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 17:29:07 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-10-21T17:29:07Z</dc:date>
    <item>
      <title>Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671563#M1052253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scenario: I would like to use a "Combo Chart" to show 'one selected FinYear' compared with 'another selected FinYear'. I would like the user to be able to choose which Financial Years to compare, therefore this will &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; always be a comparison of the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox of the FinYear field which contains values such as '2012-13', '2013-14' and '2014-15'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first expression (that doesn't work) is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;FinYear&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"$(=subfield(GetFieldSelections(FinYear),',',2))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Flag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp;&amp;nbsp; Display Options= Bar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;and my second expression (also doesn't work) is&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FinYear&lt;/SPAN&gt;&lt;SPAN&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=subfield(GetFieldSelections(FinYear),',',1))"&lt;/SPAN&gt;&lt;SPAN&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Flag&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&amp;nbsp; Display Options= Line&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;The user would then select two FinYears (for example '2012-13' and '2014-15') and the chart should show a bar for 2014-15 and a line for 2012-13. Instead the chart says "No data to display".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have a text box with the following expression to test the values...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FinYear&lt;/SPAN&gt;) &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(10) &amp;amp;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;SubField&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FinYear&lt;/SPAN&gt;),',',2)&amp;amp; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(10) &amp;amp;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;SubField&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FinYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),',',1) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And this shows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2012-13, 2014-15&lt;/P&gt;&lt;P&gt;2014-15&lt;/P&gt;&lt;P&gt;2012-13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do my chart expressions not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 14:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671563#M1052253</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-10-21T14:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671564#M1052254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #800000;"&gt;FinYear&lt;/SPAN&gt;={&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #800000;"&gt;"$(=subfield(concat(GetFieldSelections(FinYear),','),',',2))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #800000;"&gt;Flag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #800000;"&gt;FinYear&lt;/SPAN&gt;={&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #800000;"&gt;"$(=subfield(concat(GetFieldSelections(FinYear),','),',',1))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.6000003814697px; font-family: inherit; color: #800000;"&gt;Flag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 14:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671564#M1052254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-21T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671565#M1052255</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;Try like this may be it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your first expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;STRONG&gt;=sum({&amp;lt;FinYear={"$(=subfield(GetFieldSelections(max(FinYear)),',',2))"}&amp;gt;}Flag)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"&gt;&lt;BR /&gt;Display Options for Bar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"&gt;and your second expression is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';"&gt;=sum({&amp;lt;FinYear={"$(=subfield(GetFieldSelections(max(FinYear)),',',1))"}&amp;gt;}Flag)&lt;BR /&gt;Display Options for Line&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 14:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671565#M1052255</guid>
      <dc:creator />
      <dc:date>2014-10-21T14:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671566#M1052256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply &lt;A href="https://community.qlik.com/qlik-users/155466"&gt;Karthigayan C&lt;/A&gt; but this did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took your expression out of the dollar expansion bit and put it into a textbox &lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;subfield&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;concat&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FinYear&lt;/SPAN&gt;),','),',',2) and this correctly showed 2014-15 so I don't know why your expression did not work. The only thing that I can think of is, on one occasion when I was trying out various options the text box showed 1999 - ie it had evaluated the 2014-15 as an expression - 2014 minus 15.&amp;nbsp; If that is what's going on in the chart how do I stop it from evaluating the expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 15:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671566#M1052256</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-10-21T15:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671567#M1052257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your reply &lt;A href="https://community.qlik.com/qlik-users/174487"&gt;rakesh goud&lt;/A&gt; but it did not work. I tried your expression in a text box (ie the dollar expansion bit) and the text box showed "Error: Error in expression: Nested aggregation not allowed"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 15:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671567#M1052257</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-10-21T15:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671568#M1052258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some little changes&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FinYear={'$(=trim(subfield(GetFieldSelections(FinYear),',',2)))'}&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69400_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 17:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671568#M1052258</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-21T17:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671569#M1052259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also think you can use max and min of FinYear instead of subfield......&lt;/P&gt;&lt;P&gt;something as&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FinYear={'$(=minstring(FinYear))'}&amp;gt;} Flag)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 17:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671569#M1052259</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-21T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with subfield and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671570#M1052260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant! Thanks &lt;A href="https://community.qlik.com/qlik-users/10670"&gt;Massimo Grossi&lt;/A&gt;, it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course! There's a space in the GetFieldSelections results, I'm thinking it's "2014-15" when&lt;/P&gt;&lt;P&gt;actually it's " 2014-15". Pretty obvious when I look at it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst using the TRIM function definitely works I think I prefer your suggestion of MinString and&lt;/P&gt;&lt;P&gt;MaxString as these are shorter to use than the trim, subfield, getfieldselections combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 10:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-subfield-and-getfieldselections/m-p/671570#M1052260</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-10-22T10:08:25Z</dc:date>
    </item>
  </channel>
</rss>

