<?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 using a date data island in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301029#M495757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are correct that my problem stems from the fact that I am trying to use elements of the data island in my dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression, while correct in the current context, fails when more elements are added, ie: multiple years.&amp;nbsp; I'm sure there is a way round this but it would just add to the complexity of your expression and I like things to be simple and clean where possible.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Iyyappan suggested above, I probably need to map the Date reference table in, but because I have several different dates in my table that I need to count by (ie: Admission date - how many admissions per month, Discharge Date - how many discharges per month).&amp;nbsp; I probably need to look at using the existing Dimension/Fact table and building a new table with each element in its own right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie: &lt;/P&gt;&lt;P&gt;ActivityTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'Admission'&amp;nbsp;&amp;nbsp;&amp;nbsp; AS IdentifyType&lt;/P&gt;&lt;P&gt;AdmDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS DateValue&lt;/P&gt;&lt;P&gt;WHERE NOT(ISNULL(AdmDate))&lt;/P&gt;&lt;P&gt;RESIDENT MyTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do the same for Discharges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me a clean table with 1 row for either type.&amp;nbsp; I can then use Set Analysis on the [IdentifyType] to restrict my count by month, year etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;The reason I want to avoid this second method is because I have done it before and it starts to get messy after a while due to all of the additional elements that are loaded in.&amp;nbsp; ie: patient gender, age, admission method and so forth.&amp;nbsp; it is a long list.&amp;nbsp; What do I load with the admission date?&amp;nbsp; what do I load with the discharge date?&amp;nbsp; how do I count on these elements later on?&amp;nbsp; how do I remember whether I assigned patient age to the admission record or discharge record?&amp;nbsp; and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having 1 table with 1 row of information for each patient visit is much cleaner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2012 21:58:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-21T21:58:29Z</dc:date>
    <item>
      <title>Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301022#M495750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stumped as to why I can't get this to work.&amp;nbsp; See Attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My red table is suppose to be a count of discharged customers from the site.&amp;nbsp; The set analysis looks to count the number of patientID's where the DischargeDateId matches the DateId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DateId is the primary key of my date lookup table, other elements of this table are available in the list boxes at top of screen (FinancialYear, MonthNameShort).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The red table seeks to display the count of discharges split by month and financial year.&amp;nbsp; In Australia our financial year starts in July.&amp;nbsp; but don't worry too much about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the syntax for the expression is: COUNT ( {&amp;lt;[DischargeDateId]=P([DateId])&amp;gt;}&amp;nbsp; DISTINCT&amp;nbsp; InpatientEpisodeId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 04:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301022#M495750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-21T04:12:55Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301023#M495751</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just mapped to DateId, DischargeDateid using the expression like = Count(DISTINCT InpatientEpisodeId).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its helpful for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 05:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301023#M495751</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-02-21T05:11:45Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301024#M495752</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 using the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT( {$&amp;lt; DischargeDateId={$(=Concat(DISTINCT DateId, ','))}&amp;gt;}&amp;nbsp; InpatientEpisodeId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 05:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301024#M495752</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-21T05:24:25Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301025#M495753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iyyappan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I can map the DischargeDateId to DateId during load but also need to count by AdmissionDateId and there will be other Dates I need to count or aggregate by. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to use the power of Data islands to avoid duplication or over complication of processes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 05:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301025#M495753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-21T05:35:12Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301026#M495754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your expresssion has not made any difference.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but thank you for offering your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 05:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301026#M495754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-21T05:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301027#M495755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi john &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the attach example &lt;/P&gt;&lt;P&gt;your expression won't work because al the dimmensions in your tables are from data island&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what happens the appliction filters only the records that are in the selected dateid list but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it count all the records in all the cells becuase the is no connection between the dimensons in the red table and the data &lt;/P&gt;&lt;P&gt;so i change the expression to if expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 09:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301027#M495755</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-02-21T09:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301028#M495756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi john &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the attach example &lt;/P&gt;&lt;P&gt;your expression won't work because al the dimmensions in your tables are from data island&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what happens the appliction filters only the records that are in the selected dateid list but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it count all the records in all the cells becuase the is no connection between the dimensons in the red table and the data &lt;/P&gt;&lt;P&gt;so i change the expression to if expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 09:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301028#M495756</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-02-21T09:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using a date data island</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301029#M495757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are correct that my problem stems from the fact that I am trying to use elements of the data island in my dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression, while correct in the current context, fails when more elements are added, ie: multiple years.&amp;nbsp; I'm sure there is a way round this but it would just add to the complexity of your expression and I like things to be simple and clean where possible.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Iyyappan suggested above, I probably need to map the Date reference table in, but because I have several different dates in my table that I need to count by (ie: Admission date - how many admissions per month, Discharge Date - how many discharges per month).&amp;nbsp; I probably need to look at using the existing Dimension/Fact table and building a new table with each element in its own right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie: &lt;/P&gt;&lt;P&gt;ActivityTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'Admission'&amp;nbsp;&amp;nbsp;&amp;nbsp; AS IdentifyType&lt;/P&gt;&lt;P&gt;AdmDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS DateValue&lt;/P&gt;&lt;P&gt;WHERE NOT(ISNULL(AdmDate))&lt;/P&gt;&lt;P&gt;RESIDENT MyTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do the same for Discharges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me a clean table with 1 row for either type.&amp;nbsp; I can then use Set Analysis on the [IdentifyType] to restrict my count by month, year etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;The reason I want to avoid this second method is because I have done it before and it starts to get messy after a while due to all of the additional elements that are loaded in.&amp;nbsp; ie: patient gender, age, admission method and so forth.&amp;nbsp; it is a long list.&amp;nbsp; What do I load with the admission date?&amp;nbsp; what do I load with the discharge date?&amp;nbsp; how do I count on these elements later on?&amp;nbsp; how do I remember whether I assigned patient age to the admission record or discharge record?&amp;nbsp; and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having 1 table with 1 row of information for each patient visit is much cleaner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 21:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-date-data-island/m-p/301029#M495757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-21T21:58:29Z</dc:date>
    </item>
  </channel>
</rss>

