<?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: Help with Set Analysis inside of other Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458613#M488471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work only when you click on a specific contract, if you clear the selections it won't work. I've tried this before.&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, 03 Jan 2013 19:22:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-03T19:22:53Z</dc:date>
    <item>
      <title>Help with Set Analysis inside of other Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458609#M488463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem using set analysis and I was wondering if you can assist me please. I’ve been dealing with the issue and I can’t this get to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set, and I want to get the latest transaction for a period range. &lt;/P&gt;&lt;P&gt;For example: My period date range is &amp;gt;=09/02/2011 (vStartPPFormat) and &amp;lt;=09/01/2012(vEndPPFormat), therefore my latest value is 192.881 on 8/21/2012. All the fields change constantly, so there’s nothing that I can say on this TC_TXN_TYPE, or on this date. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt; &lt;IMG alt="1.png" class="jive-image-thumbnail jive-image" height="161" onclick="" src="https://community.qlik.com/legacyfs/online/27325_1.png" width="522" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t seem to find the way to calculate this. &lt;/P&gt;&lt;P&gt;I first calculated the Maximum Date: &lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 10pt;"&gt;GV_OBJ_ID&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;={619}, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 10pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;={'&amp;gt;=$(vStartPPFormat)&amp;lt;=$(vEndPPFormat)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 10pt;"&gt;GV_VALUE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;) . &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;With this I got the 8/21/2012 which is correct ,and then I want to use that date in a new expression. I can’t put that expression in a variable, because it will get the max date for all benefits plans, so if some benefit plan has a date of 8/31/2012, it will get me that date, but for this example 8/31/2012 won’t work.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; I need the maximum date for each benefit plan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Then I did the following expression to get the 192.881. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 10pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 10pt;"&gt;"=Max({&amp;lt;GV_OBJ_ID={619}, CalendarDate={'&amp;gt;=$(vStartPPFormat)&amp;lt;=$(vEndPPFormat)'}&amp;gt;}GV_VALUE_DATE)"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 10pt;"&gt;GV_DOUBLE_VALUE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;And instead of getting the 192.881 I’m getting 193.25, which is the maximum of everything. It’s like it’s not taking in mind the date 8/21/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/27326_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Attached are my files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;P!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 19:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458609#M488463</guid>
      <dc:creator />
      <dc:date>2012-12-20T19:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis inside of other Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458610#M488466</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MAX( {$&amp;lt;CalendarDate = {"$(=Max({&amp;lt;GV_OBJ_ID={619}, CalendarDate={'&amp;gt;=$(vStartPPFormat)&amp;lt;=$(vEndPPFormat)'}&amp;gt;}GV_VALUE_DATE))"}&amp;gt;} GV_DOUBLE_VALUE )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 21:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458610#M488466</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-20T21:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis inside of other Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458611#M488469</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;FirstSortedValue( {&amp;lt;GV_OBJ_ID={619}, CalendarDate={'&amp;gt;=$(vStartPPFormat)&amp;lt;=$(vEndPPFormat)'}&amp;gt;} Aggr(Max(GV_DOUBLE_VALUE), BenefitPlan, CalendarDate) , -Aggr(CalendarDate,BenefitPlan,CalendarDate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 21:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458611#M488469</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-20T21:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis inside of other Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458612#M488470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasam, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FirstSortedValue function worked. What I don't understand is why you have to aggregate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 19:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458612#M488470</guid>
      <dc:creator />
      <dc:date>2013-01-03T19:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis inside of other Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458613#M488471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work only when you click on a specific contract, if you clear the selections it won't work. I've tried this before.&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, 03 Jan 2013 19:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-inside-of-other-Set-Analysis/m-p/458613#M488471</guid>
      <dc:creator />
      <dc:date>2013-01-03T19:22:53Z</dc:date>
    </item>
  </channel>
</rss>

