<?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 using getfieldselections() result in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977429#M14098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, After a lot of trying and failure I finally managed to get the function working.&lt;/P&gt;&lt;P&gt;Can I ask you 1 one thing related to this?? &lt;/P&gt;&lt;P&gt;In my pivot table I have salesrep, customer and turnover of the selected year when the customer does not have any turnover in previous years. if there is no revenue the turnover column is null (shows '-').&lt;/P&gt;&lt;P&gt;How can I reduce the pivot to only show me the new customers?? I have tried to re-use the formula &lt;/P&gt;&lt;P&gt;of the expression. Since the outcome is the same, it should just display another column. The expression is ok, bu&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;t clicking ok after editing the dimension it displays the message 'Error in calculated dimension' where I expect the other column.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2015 21:14:07 GMT</pubDate>
    <dc:creator>andre_ficken</dc:creator>
    <dc:date>2015-11-26T21:14:07Z</dc:date>
    <item>
      <title>Set analysis using getfieldselections() result</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977425#M14094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am stuck on a set analyses definition using the result of a getfieldselections result... I am not sure whether this will actually work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my set analyses in simple format: Sum( {1 &amp;lt;&amp;nbsp; [Turnover year] = {"&amp;lt;2014"} &amp;gt;} [Turnover amount])&lt;/P&gt;&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a general selectionbox&amp;nbsp; on a Year column... selections can be, for example, a single year (eg. 2014)&amp;nbsp; or multiple years (eg. 2014 and 2015). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to sum all turnover in years less than the first year in my getfieldselections() result. &lt;/P&gt;&lt;P&gt;When selecting 2 years, a left(getfieldselections([Year]), 4) will give me the first year.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short: How do I replace this: {"&amp;lt;2014"} in the set analyses by using the result of left(getfieldselections([Year]), 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been struggling with {"&amp;lt;$(=left(getfieldselections([Year]), 4))"} but no luck on the expected result sofar...&lt;/P&gt;&lt;P&gt;any help to resolve this is gladly accepted.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 23:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977425#M14094</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2015-11-24T23:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using getfieldselections() result</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977426#M14095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you do this:&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;Sum({1&amp;lt;[Turnover year] =&lt;SPAN style="color: #ff0000;"&gt; {"(='&amp;lt;' &amp;amp; Min([Turnover year]))"}&lt;/SPAN&gt; &amp;gt;} [Turnover amount])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 00:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977426#M14095</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-25T00:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using getfieldselections() result</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977427#M14096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this:&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({1&amp;lt;[Turnover year] =&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;{"$(='&amp;lt;' &amp;amp; Num(Left(GetFieldSelections(Year), 4)), '##')"}&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;} [Turnover amount])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 01:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977427#M14096</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-25T01:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using getfieldselections() result</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977428#M14097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, I am more in favor of the last example using the getfieldselections().&lt;/P&gt;&lt;P&gt;I cannot get it to work though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My base line that works correctly is:&amp;nbsp;&amp;nbsp; Sum( {$ &amp;lt;[Omzet jaar] = {"&amp;lt;2014"} &amp;gt; } [Omzet bedrag])) &lt;/P&gt;&lt;P&gt;The part that I need to change is: &amp;lt;[Omzet jaar] = {"&amp;lt;2014"} &amp;gt;&lt;/P&gt;&lt;P&gt;in the {"&amp;lt;2014"} part I need the year replaced by the value of left(GetFieldSelections([Jaar factuur]),4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Omzet jaar = Revenu Year, Omzet bedrag = Revenu Amount, Jaar factuur = selection,&lt;/P&gt;&lt;P&gt;I am still struggling with it as you can see...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally after I get this to work, I would like the pivot table to only show new customers (no revenu&lt;/P&gt;&lt;P&gt;BEFORE getfieldselections() years, but EXISTING revenu IN getfieldselections() years. How can I keep new customers on this list and eliminate existing customers??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance again for your help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977428#M14097</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2015-11-26T16:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using getfieldselections() result</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977429#M14098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, After a lot of trying and failure I finally managed to get the function working.&lt;/P&gt;&lt;P&gt;Can I ask you 1 one thing related to this?? &lt;/P&gt;&lt;P&gt;In my pivot table I have salesrep, customer and turnover of the selected year when the customer does not have any turnover in previous years. if there is no revenue the turnover column is null (shows '-').&lt;/P&gt;&lt;P&gt;How can I reduce the pivot to only show me the new customers?? I have tried to re-use the formula &lt;/P&gt;&lt;P&gt;of the expression. Since the outcome is the same, it should just display another column. The expression is ok, bu&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;t clicking ok after editing the dimension it displays the message 'Error in calculated dimension' where I expect the other column.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 21:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-using-getfieldselections-result/m-p/977429#M14098</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2015-11-26T21:14:07Z</dc:date>
    </item>
  </channel>
</rss>

