<?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 Set Analysis sub query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344151#M493756</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;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;session_date={"&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;$((&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;record_session_date &lt;/SPAN&gt;))"}, Lever_code ={'RR'} &lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;session_date&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 13:19:48 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2012-05-09T13:19:48Z</dc:date>
    <item>
      <title>Set Analysis sub query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344147#M493752</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;I'm trying to solve a subquery case in the front end of QlikView.&lt;/P&gt;&lt;P&gt;I've a table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;animal_ID&lt;/P&gt;&lt;P&gt;Lever_code&lt;/P&gt;&lt;P&gt;session_date&lt;/P&gt;&lt;P&gt;session_ID&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table that displays this table&amp;nbsp; but I want a extra field/expression that also give me the value of the max(session_date) where the session_date &amp;lt; session_date (of the record) and the Lever_code ='RR'.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone solve this case in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for helping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344147#M493752</guid>
      <dc:creator />
      <dc:date>2012-05-09T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Set Analysis sub query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344148#M493753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be you require below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;session_date={"&amp;lt;=$(Max(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;session_date)&lt;/SPAN&gt;)"},&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt; Lever_code ={'RR'} &lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Value)&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: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344148#M493753</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-05-09T12:54:41Z</dc:date>
    </item>
    <item>
      <title>Set Analysis sub query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344149#M493754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx for your reply but that's not the solution for my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the session date of the sub query should be the max (session date) of a set of data that gives me all the session dates that are smaller then the record session date and have a Lever_code = 'RR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;session_date &amp;lt; record_session_date and has Lever_code={'RR'} --&amp;gt; from this set of session_dates I need the value of the max(session_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure it's possible with set analysis, maybe I need to load an extra island table (to compare the fields)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 13:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344149#M493754</guid>
      <dc:creator />
      <dc:date>2012-05-09T13:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis sub query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344150#M493755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what you mean with the first condition. What are you comparing session_date with? Is session_date a dimension and you are comparing with that dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case, I think you might need an island table to get the results you are after. I suggest that you post your model, or a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit -- missed your second post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 13:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344150#M493755</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-09T13:19:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis sub query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344151#M493756</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;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;session_date={"&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;$((&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;record_session_date &lt;/SPAN&gt;))"}, Lever_code ={'RR'} &lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;session_date&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 13:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344151#M493756</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-05-09T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis sub query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344152#M493757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in attachment I've a test example .&amp;nbsp; This example is working with an mirror island table of the main data.&amp;nbsp;&amp;nbsp; I just wonder I can create my extra expression in my straight table based on a sub query of the same data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for helping!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 14:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-sub-query/m-p/344152#M493757</guid>
      <dc:creator />
      <dc:date>2012-05-09T14:44:11Z</dc:date>
    </item>
  </channel>
</rss>

