<?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 Using GetFieldSelections in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276412#M103120</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 expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =Sum({$&amp;lt;CALENDARYEAR={'=$(=Max(CALENDARYEAR)-1)'}&amp;gt; [DAILYSALES-SALES-VALUE-EXTAX])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 12:20:53 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2012-02-13T12:20:53Z</dc:date>
    <item>
      <title>Using GetFieldSelections in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276406#M103114</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;Hopefully a quick question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master calendar and an assoicated table full of sales values.&amp;nbsp; What I want is two columns in a straight table, the first showing the values from the selected year from a listbox populated from the master calendar.&amp;nbsp; The second column needs to show the values from the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have left the first column's expression as =Sum([DAILYSALES-SALES-VALUE-EXTAX])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second column's expression as =Sum({$&amp;lt;CALENDARYEAR=GetFieldSelections(CALENDARYEAR)-1&amp;gt; [DAILYSALES-SALES-VALUE-EXTAX])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The editor says there is a syntax error, but I dont't know how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point me in the right direction with regards to using GetFieldSelections within an expression, or alternatively is there another/better way to get year on year comparison within a straight table, where the user either selects a single year from a list box, or has to select two years?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trevor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276406#M103114</guid>
      <dc:creator />
      <dc:date>2012-02-13T11:41:29Z</dc:date>
    </item>
    <item>
      <title>Using GetFieldSelections in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276407#M103115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use Expression as &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({$&amp;lt;CALENDARYEAR={$(=Max(CALENDARYEAR)-1)}&amp;gt; [DAILYSALES-SALES-VALUE-EXTAX])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276407#M103115</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-13T11:45:31Z</dc:date>
    </item>
    <item>
      <title>Using GetFieldSelections in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276408#M103116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; you need to change to &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;CALENDARYEAR={"$(=GetFieldSelections(CALENDARYEAR)-1)"}&amp;gt; [DAILYSALES-SALES-VALUE-EXTAX])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276408#M103116</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-02-13T11:47:29Z</dc:date>
    </item>
    <item>
      <title>Using GetFieldSelections in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276409#M103117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syntax now shows as ok, but I don't get any data returned at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276409#M103117</guid>
      <dc:creator />
      <dc:date>2012-02-13T11:59:40Z</dc:date>
    </item>
    <item>
      <title>Using GetFieldSelections in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276410#M103118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as per other post, syntax shows ok, but still no data being returned.&amp;nbsp; The syntax looks very strange to me?&amp;nbsp; What is the purpose of all the double quotes ?&amp;nbsp; I can't find anything about this in the reference guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 12:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276410#M103118</guid>
      <dc:creator />
      <dc:date>2012-02-13T12:01:00Z</dc:date>
    </item>
    <item>
      <title>Using GetFieldSelections in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276411#M103119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({$&amp;lt;CALENDARYEAR={'$(=Max(CALENDARYEAR)-1)'}&amp;gt; [DAILYSALES-SALES-VALUE-EXTAX])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 12:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276411#M103119</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-13T12:05:18Z</dc:date>
    </item>
    <item>
      <title>Using GetFieldSelections in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276412#M103120</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 expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =Sum({$&amp;lt;CALENDARYEAR={'=$(=Max(CALENDARYEAR)-1)'}&amp;gt; [DAILYSALES-SALES-VALUE-EXTAX])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 12:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-GetFieldSelections-in-an-expression/m-p/276412#M103120</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-13T12:20:53Z</dc:date>
    </item>
  </channel>
</rss>

