<?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: using function in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1311999#M619191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot write this way in set analysis. Create a Field in your load script it would be easy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR([Purchase Creation Date]) AS PurYear, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use &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;= Sum({&amp;lt; PurYear = { "=$(&amp;gt;= $(vPrevYear))" } &amp;gt;} [Field I want to sum])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 15:18:28 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-03-30T15:18:28Z</dc:date>
    <item>
      <title>using function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1311997#M619189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the year function within set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;year([Purchase Creation Date]))&amp;gt;='($(vPrevYear)}&amp;gt;} [Field I want to sum])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not recognizing the function for some reason. I cant hook it up to the master calendar year because I need this specific year the master calendar is hooked up to a different field. Is there an easy way to do this without creating a whole separate field on the load script? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1311997#M619189</guid>
      <dc:creator />
      <dc:date>2017-03-30T15:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: using function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1311998#M619190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only use field names on the left of the equal sign in a set expression, no functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your date format (e.g. MM/DD/YYYY), you can use a search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt; [Purchase Creation Date] = {"*/$(vPrevYear)"} &amp;gt;} [Field I want to sum])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1311998#M619190</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-30T15:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: using function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1311999#M619191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot write this way in set analysis. Create a Field in your load script it would be easy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR([Purchase Creation Date]) AS PurYear, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use &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;= Sum({&amp;lt; PurYear = { "=$(&amp;gt;= $(vPrevYear))" } &amp;gt;} [Field I want to sum])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1311999#M619191</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-30T15:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: using function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1312000#M619192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;in that case you have to use something like this&lt;BR /&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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({&amp;lt;[Purchase Creation Date]=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{"&amp;gt;=$(=AddYears(YearStart(Max([Date])),-1))"}&amp;gt;}&lt;/SPAN&gt;[Field I want to sum])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1312000#M619192</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-03-30T15:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: using function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1312001#M619193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this too...&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({&amp;lt;[Purchase Creation Date] = {"=Year(Only({1}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Purchase Creation Date]&lt;/SPAN&gt;)) &amp;gt;= $(vPrevYear)"}&amp;gt;} [Field I want to sum])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1312001#M619193</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-30T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: using function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1312002#M619194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I missed the &amp;gt; in your comparison, but you should be able to use it in the search as well:&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;Sum({&amp;lt; [Purchase Creation Date] = {"&amp;gt;='01/01/$(vPrevYear)'"} &amp;gt;} [Field I want to sum])&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Adapt to your date format.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-function-in-set-analysis/m-p/1312002#M619194</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-30T15:32:48Z</dc:date>
    </item>
  </channel>
</rss>

