<?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 with clustered dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259948#M620190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date={'*P*'} -{'PM'}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 07:38:48 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-02-24T07:38:48Z</dc:date>
    <item>
      <title>set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259941#M620183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am trying to achieve this expression where I am selecting a field value called Revenue 3rd party- Contract, and dates which are in the format of P01-12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the date field is populated as such&lt;/P&gt;&lt;P&gt;2015 P02&lt;/P&gt;&lt;P&gt;2015 P03&lt;/P&gt;&lt;P&gt;2015 P12&lt;/P&gt;&lt;P&gt;2016 P02&lt;/P&gt;&lt;P&gt;2016 P03&lt;/P&gt;&lt;P&gt;2016 P12&lt;/P&gt;&lt;P&gt;2016 Q1 FC PM&lt;/P&gt;&lt;P&gt;2016 Q4 FC PM&lt;/P&gt;&lt;P&gt;2016 Q1 BDG&lt;/P&gt;&lt;P&gt;2016 Q4 BDG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code which I am currently running is:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;BDF_Type={"Revenue 3rd Party - Contract"}, &lt;SPAN style="color: #ff0000;"&gt;Year(Date#(date, 'YYYY PMM'))={*P*}&amp;gt;}&lt;/SPAN&gt; cash)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segment of code in red is the part which is giving me the error. Anyone has an idea on how to tackle this question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Royce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 06:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259941#M620183</guid>
      <dc:creator />
      <dc:date>2017-02-24T06:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259942#M620184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In set analysis, the LHS of&amp;nbsp; modifier can't be an expression but a field name. What are you trying to express with the highlighted section?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259942#M620184</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-02-24T07:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259943#M620185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah! I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I am trying to do is to only use the dates selected the format of 2015 P01 - P12 etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259943#M620185</guid>
      <dc:creator />
      <dc:date>2017-02-24T07:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259944#M620186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try 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({$&amp;lt;BDF_Type={"Revenue 3rd Party - Contract"}, date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={*P*}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt; cash)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259944#M620186</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2017-02-24T07:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259945#M620187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt this will work because it might select the values with PM inside as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; or will it only select P ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259945#M620187</guid>
      <dc:creator />
      <dc:date>2017-02-24T07:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259946#M620188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeahs I just gave it a try and it selects PM values as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259946#M620188</guid>
      <dc:creator />
      <dc:date>2017-02-24T07:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259947#M620189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Royce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that you are doing great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my primary analysis, given data is at month level granularity. Therefore, you can extract the Year &amp;amp; Month for Date field by using -&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14879214847926547" jivemacro_uid="_14879214847926547"&gt;
&lt;P style="font-size: 13.3333px;"&gt;Left(Date,4) AS Year,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;If(Len(Date) = 8, Right(Date,2)) AS Month&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post that you can make revamp you existing expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14879214766613356" jivemacro_uid="_14879214766613356"&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;BDF_Type={'Revenue 3rd Party - Contract'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;Year={'2015'}, &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month={'12'}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; cash)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&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;Hope this will be helpful.&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;Regards!&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;Rahul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259947#M620189</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-24T07:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259948#M620190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date={'*P*'} -{'PM'}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259948#M620190</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-02-24T07:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259949#M620191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Try to create a flag in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14879219207198042 jive_text_macro" jivemacro_uid="_14879219207198042"&gt;
&lt;P&gt;Load date_Field,if ( KeepChar(date_Field,'ABCDEFGHIJKLMNOPQRSTUVWXYZ')='P','Y','N') AS Date_flag;&lt;/P&gt;
&lt;P&gt;LOad * Inline [&lt;/P&gt;
&lt;P&gt;date_Field&lt;/P&gt;
&lt;P&gt;2015 P02&lt;/P&gt;
&lt;P&gt;2015 P03&lt;/P&gt;
&lt;P&gt;2015 P12&lt;/P&gt;
&lt;P&gt;2016 P02&lt;/P&gt;
&lt;P&gt;2016 P03&lt;/P&gt;
&lt;P&gt;2016 P12&lt;/P&gt;
&lt;P&gt;2016 Q1 FC PM&lt;/P&gt;
&lt;P&gt;2016 Q4 FC PM&lt;/P&gt;
&lt;P&gt;2016 Q1 BDG&lt;/P&gt;
&lt;P&gt;2016 Q4 BDG&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Modify your expression :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({$&amp;lt;BDF_Type={"Revenue 3rd Party - Contract"}, &lt;SPAN style="color: #ff0000;"&gt;Date_flag&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={'Y'}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; cash)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259949#M620191</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2017-02-24T07:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259950#M620192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers for the well wishes Rahul, I have tried out your solution and it works perfectly, however I picked out Tresesco's solution as it was much faster, however you have provided me some great tools to tackle my other issues I believe can be solved by your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again buddy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259950#M620192</guid>
      <dc:creator />
      <dc:date>2017-02-24T07:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with clustered dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259951#M620193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Royce for kind words!&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 08:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-clustered-dates/m-p/1259951#M620193</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-24T08:40:29Z</dc:date>
    </item>
  </channel>
</rss>

