<?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: Function within Set Analysis - help needed! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574026#M213812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum ( {&amp;lt;YearMonth = {'$(=max(YearMonth))' }&amp;gt;} Time)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;like I am suing in my application as below..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesMonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'$(=Max(SalesMonthYear))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Net_Trading_Days&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 13:33:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-14T13:33:19Z</dc:date>
    <item>
      <title>Function within Set Analysis - help needed!</title>
      <link>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574024#M213810</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 am looking to set up a straigfht table which will display the time logged to a system on a rolling 5 month basis.&lt;/P&gt;&lt;P&gt;The field which contains the time period is called 'YearMonth'. It is a dual field so it has a numeric value (to allow sorting etc) and a text representation e.g. '2014-Mar'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use a function within a Set Analysis statement to do this, however the below set analysis is not functioning as required. I need the Time field to be summed where&amp;nbsp; the YearMonth field is equal to the maximum YearMonth value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ( {&amp;lt;YearMonth = {"$(=max( {1} YearMonth))" }&amp;gt;} Time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More specifically the issue can be narrowed to this bit {"$(=max( {1} YearMonth))" }&amp;gt;}.&lt;/P&gt;&lt;P&gt;A zero value is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be a syntax error which is not being flagged by the checker. Can anyone shed any light?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies but due to company policy I cannot share the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574024#M213810</guid>
      <dc:creator />
      <dc:date>2014-04-14T13:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function within Set Analysis - help needed!</title>
      <link>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574025#M213811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's because the max function converts the YearMonth into a number and you need the text representation for set analysis. Therefore you need to convert your number back into the equivalent text representation of YearMonth. You can try with date like:&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: 12.727272033691406px;"&gt;{"$(=date(max( {1} YearMonth), 'YYYY-MMM'))" }&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: 12.727272033691406px;"&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: 12.727272033691406px;"&gt;or use another function to get the text representation.&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: 12.727272033691406px;"&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: 12.727272033691406px;"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574025#M213811</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-04-14T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function within Set Analysis - help needed!</title>
      <link>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574026#M213812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum ( {&amp;lt;YearMonth = {'$(=max(YearMonth))' }&amp;gt;} Time)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;like I am suing in my application as below..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesMonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'$(=Max(SalesMonthYear))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Net_Trading_Days&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574026#M213812</guid>
      <dc:creator />
      <dc:date>2014-04-14T13:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function within Set Analysis - help needed!</title>
      <link>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574027#M213813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;D'oh! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-within-Set-Analysis-help-needed/m-p/574027#M213813</guid>
      <dc:creator />
      <dc:date>2014-04-14T13:41:39Z</dc:date>
    </item>
  </channel>
</rss>

