<?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: GetFieldSelections with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412621#M1159589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working now.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your timely reply.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siva &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 10:56:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-07T10:56:29Z</dc:date>
    <item>
      <title>GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412614#M1159582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to display YTD(Year to Date) which should show the value for "&lt;STRONG&gt;all"&lt;/STRONG&gt; the months for the selected year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =num(Avg ( {$&amp;lt;Year={"$(=getfieldselections(Year))"}, Month={"*"}&amp;gt;} [S14]) *100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is showing the right value if am selecting only Year. &lt;/P&gt;&lt;P&gt;If is select any months or quarters, the value is changing. This should not happen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siva &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412614#M1159582</guid>
      <dc:creator />
      <dc:date>2012-12-06T10:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412615#M1159583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my complete expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= num(Avg ( {$&amp;lt;Year={"$(=getfieldselections(Year))"}, Month={"*"}&amp;gt;} [S14]) *100 ,0.00) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412615#M1159583</guid>
      <dc:creator />
      <dc:date>2012-12-06T10:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412616#M1159584</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 this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;= num(Avg ( {$&amp;lt;Year={"$(=getfieldselections(Year))"}, Month={&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;"$(=getfieldselections(Month))"&lt;/SPAN&gt;}&amp;gt;} [S14]) *100 ,0.00)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;Best of luck&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412616#M1159584</guid>
      <dc:creator />
      <dc:date>2012-12-06T10:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412617#M1159585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. but this didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display the average value of the field (ex: avg(S14)) for a year( i mean for the selected year).&lt;/P&gt;&lt;P&gt;this value should not change even if i select any other list boxes in the sheet (like: Month, Quarter, Name, etc..).&lt;/P&gt;&lt;P&gt;The output value should only reflect for the selections made on the year column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you to understand my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412617#M1159585</guid>
      <dc:creator />
      <dc:date>2012-12-06T10:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412618#M1159586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: =num(Avg ( {$&amp;lt;Year={"$(=only(Year))"}, Month=,Quarter=&amp;gt;} [S14]) *100)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412618#M1159586</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-06T10:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412619#M1159587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the expressions are giving the same value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; num(Avg ( {$&amp;lt;Year={"$(=Only(Year))"}, Month=&amp;gt;} [S14]) *100 ,0.00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(Avg ([S14]) *100 ,0.00)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 11:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412619#M1159587</guid>
      <dc:creator />
      <dc:date>2012-12-06T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412620#M1159588</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;If you want to return avg for more than 1 selected year, you will need to put the GetFieldSelections through a variable as it needs the quote marks adding in, eg ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable = &lt;STRONG&gt;=Replace(GetFieldSelections(Year),', ','","')&lt;/STRONG&gt;&lt;EM&gt; ( - the quotes at the end spread out are ... (Year), ',' , ' "," ')&lt;/EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then reference this in your expression ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(avg({1&amp;lt;Year={"$(variable)"}&amp;gt;} S14),'0.00')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only need to return for one year at a time then this should do the trick, multiple years will not work ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(avg({1&amp;lt;Year={'$(=getfieldselections(Year))'}&amp;gt;} S14),'0.00')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 12:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412620#M1159588</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-12-06T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412621#M1159589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working now.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your timely reply.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siva &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 10:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412621#M1159589</guid>
      <dc:creator />
      <dc:date>2012-12-07T10:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412622#M1159590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;use sum({$&amp;lt;Years = E({&amp;lt;Years={$(=getfieldselections(Years))}&amp;gt;}Years)&amp;gt;} Sales_s) for Except year that you select show remaning the year in list box &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 05:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412622#M1159590</guid>
      <dc:creator />
      <dc:date>2013-06-04T05:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412623#M1159591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have got a scenario where in when I select yearmonth range for example 201301 to 201306&lt;/P&gt;&lt;P&gt;then I need to sum(key) where in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resultant should be like for&lt;/P&gt;&lt;P&gt;201301 -&amp;gt; postyearmonth should consider from 201301 to next 5months i.e 201305&lt;/P&gt;&lt;P&gt;I have written like sum({&amp;lt;postyearmnt={"&amp;gt;=$(=yearmonth) &amp;lt;=$(=addmonths(yearmonth,5))"}&amp;gt;}Key)&lt;/P&gt;&lt;P&gt;like this for 201302 also and go on&lt;/P&gt;&lt;P&gt;values are correct when I selected only single yearmonth then I am getting correct values&lt;/P&gt;&lt;P&gt;but when I select multiple yearmonths then postig yearmnt starting from repective yearmonth only but postingyearmnt end is not changing for 201302 ,201203 ,201304 ,201305 ,201306 .&lt;/P&gt;&lt;P&gt;it is fixed to 201305 .&lt;/P&gt;&lt;P&gt;please suggest me solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:$@M"&gt;$@M&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412623#M1159591</guid>
      <dc:creator />
      <dc:date>2014-12-12T10:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412624#M1159592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-with-set-analysis/m-p/412624#M1159592</guid>
      <dc:creator>mvaugusto</dc:creator>
      <dc:date>2016-12-28T12:58:31Z</dc:date>
    </item>
  </channel>
</rss>

