<?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 Writing SubQuery logic in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Writing-SubQuery-logic-in-Set-Analysis/m-p/275543#M498181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario as below,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a fact A_FACT and is having fields like New_Joinee_Flag, Offer_Flag, Candidate_ID, Month_SID etc. the requirement is to find New_Joinee_Count for selected month and next month where the Candidate is having a offer in selected month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the respective query used,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select sum(NEW_JOINEE_FLAG) from hcm_A_FACT where month_sid in( 201104,201105) and&amp;nbsp; CANDIDATE_SID in (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select CANDIDATE_SID from A_FACT where offer_flag =1 and month_sid = 201104)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since this needs to be dynamic can't write it in script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone please help me in writing the same as set analysis expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 13:59:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-20T13:59:39Z</dc:date>
    <item>
      <title>Writing SubQuery logic in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-SubQuery-logic-in-Set-Analysis/m-p/275543#M498181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario as below,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a fact A_FACT and is having fields like New_Joinee_Flag, Offer_Flag, Candidate_ID, Month_SID etc. the requirement is to find New_Joinee_Count for selected month and next month where the Candidate is having a offer in selected month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the respective query used,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select sum(NEW_JOINEE_FLAG) from hcm_A_FACT where month_sid in( 201104,201105) and&amp;nbsp; CANDIDATE_SID in (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select CANDIDATE_SID from A_FACT where offer_flag =1 and month_sid = 201104)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since this needs to be dynamic can't write it in script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone please help me in writing the same as set analysis expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-SubQuery-logic-in-Set-Analysis/m-p/275543#M498181</guid>
      <dc:creator />
      <dc:date>2011-09-20T13:59:39Z</dc:date>
    </item>
    <item>
      <title>Writing SubQuery logic in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-SubQuery-logic-in-Set-Analysis/m-p/275544#M498182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,&lt;/P&gt;&lt;P&gt;i think that your query must be something like this when u select month SID 201105&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CANDIDATE_SID =P({$&amp;lt;month_sid ={$(#=only(month_sid )-1)},offer_flag={1} &amp;gt;}CANDIDATE_SID )&amp;gt;}NEW_JOINEE_FLAG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example, if u attach a file with some example data is better.&lt;/P&gt;&lt;P&gt;But i hope this help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-SubQuery-logic-in-Set-Analysis/m-p/275544#M498182</guid>
      <dc:creator />
      <dc:date>2011-09-20T14:13:03Z</dc:date>
    </item>
  </channel>
</rss>

