<?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 How to interpret something like this in Qlikview Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-interpret-something-like-this-in-Qlikview-Script/m-p/315754#M710276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;select count(c.id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from customer_dim c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where c.id in &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(select distinct f.customer_dim_id from event_fact f join product_dim p on f.product_dim_id = p.id &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where event_type_dim_id=1 and created_date='19/03/2011' and f.skin_dim_id='1') &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and not exists (select * from event_fact f join product_dim p on f.product_dim_id = p.id &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where event_type_dim_id=1 and f.created_date&amp;gt;=to_date('19/03/2011','DD/MM/YYYY') - interval '30 days' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and f.created_date&amp;lt;'19/03/2011' and f.skin_dim_id='1' and f.customer_dim_id=c.id and f.skin_dim_id=c.skin_dim_id) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and exists (select * from agg_event_extract agg &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where agg.event_type_dim_id=4 and agg.period='lifetime' and agg.skin_dim_id=1 and agg.customer_dim_id=c.id &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and agg.skin_dim_id=c.skin_dim_id and agg.min_created_cet is not null)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;customer_dim_id as cid_a,&lt;/P&gt;&lt;P&gt;(date#(created_date,'DD/MM/YYYY')) as cdate_a&lt;/P&gt;&lt;P&gt;Resident EventFacts WHERE event_type_dim_id= '1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;customer_dim_id as cid_b,&lt;/P&gt;&lt;P&gt;(date#(created_date,'DD/MM/YYYY')) as cdate_b&lt;/P&gt;&lt;P&gt;Resident EventFacts WHERE event_type_dim_id= '1' AND (created_date &amp;gt;= to_date('19/03/2011','DD/MM/YYYY') -30 AND created_date &amp;lt;= to_date('19/03/2011','DD/MM/YYYY'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;customer_dim_id as cid_c &lt;/P&gt;&lt;P&gt;RESIDENT CustomerLifeTimeValue WHERE deposit_lifetime_min_created_cet &amp;lt;&amp;gt; 'Null'&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MainQuery: &lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count( customer_dim_id)&lt;/P&gt;&lt;P&gt;RESIDENT EventFacts WHERE event_type_dim_id and&amp;nbsp; not exists(cid_b,customer_dim_id) and exists(cid_c,customer_dim_id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How shall I go about doing the IN(Sub Query) bit and also the 19/03/2011 is a selection from the main dashboard, How can&amp;nbsp; I make it into a parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopw I was clear enough&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2011 09:02:04 GMT</pubDate>
    <dc:creator>stevegimbrollmt</dc:creator>
    <dc:date>2011-05-20T09:02:04Z</dc:date>
    <item>
      <title>How to interpret something like this in Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interpret-something-like-this-in-Qlikview-Script/m-p/315754#M710276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;select count(c.id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from customer_dim c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where c.id in &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(select distinct f.customer_dim_id from event_fact f join product_dim p on f.product_dim_id = p.id &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where event_type_dim_id=1 and created_date='19/03/2011' and f.skin_dim_id='1') &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and not exists (select * from event_fact f join product_dim p on f.product_dim_id = p.id &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where event_type_dim_id=1 and f.created_date&amp;gt;=to_date('19/03/2011','DD/MM/YYYY') - interval '30 days' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and f.created_date&amp;lt;'19/03/2011' and f.skin_dim_id='1' and f.customer_dim_id=c.id and f.skin_dim_id=c.skin_dim_id) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and exists (select * from agg_event_extract agg &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where agg.event_type_dim_id=4 and agg.period='lifetime' and agg.skin_dim_id=1 and agg.customer_dim_id=c.id &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and agg.skin_dim_id=c.skin_dim_id and agg.min_created_cet is not null)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;customer_dim_id as cid_a,&lt;/P&gt;&lt;P&gt;(date#(created_date,'DD/MM/YYYY')) as cdate_a&lt;/P&gt;&lt;P&gt;Resident EventFacts WHERE event_type_dim_id= '1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;customer_dim_id as cid_b,&lt;/P&gt;&lt;P&gt;(date#(created_date,'DD/MM/YYYY')) as cdate_b&lt;/P&gt;&lt;P&gt;Resident EventFacts WHERE event_type_dim_id= '1' AND (created_date &amp;gt;= to_date('19/03/2011','DD/MM/YYYY') -30 AND created_date &amp;lt;= to_date('19/03/2011','DD/MM/YYYY'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;customer_dim_id as cid_c &lt;/P&gt;&lt;P&gt;RESIDENT CustomerLifeTimeValue WHERE deposit_lifetime_min_created_cet &amp;lt;&amp;gt; 'Null'&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MainQuery: &lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count( customer_dim_id)&lt;/P&gt;&lt;P&gt;RESIDENT EventFacts WHERE event_type_dim_id and&amp;nbsp; not exists(cid_b,customer_dim_id) and exists(cid_c,customer_dim_id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How shall I go about doing the IN(Sub Query) bit and also the 19/03/2011 is a selection from the main dashboard, How can&amp;nbsp; I make it into a parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopw I was clear enough&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 09:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interpret-something-like-this-in-Qlikview-Script/m-p/315754#M710276</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-05-20T09:02:04Z</dc:date>
    </item>
    <item>
      <title>How to interpret something like this in Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interpret-something-like-this-in-Qlikview-Script/m-p/315755#M710277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone has an idea on this? not sure If it is well explained, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 12:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interpret-something-like-this-in-Qlikview-Script/m-p/315755#M710277</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2011-06-13T12:19:22Z</dc:date>
    </item>
  </channel>
</rss>

