<?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 help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306525#M113201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the file now Jangan&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 09:15:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-22T09:15:52Z</dc:date>
    <item>
      <title>Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306523#M113199</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I currently have a chart with one dimension of "consultant" and two expressions "Average knife to skin time" and "Activity".&lt;/P&gt;&lt;P&gt;However, this is showing dubious results as it includes activities where there was no procedure.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do I exclude "procedure" where it is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File now attached.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 08:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306523#M113199</guid>
      <dc:creator />
      <dc:date>2012-02-22T08:14:50Z</dc:date>
    </item>
    <item>
      <title>Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306524#M113200</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;Can you attach the sample.&amp;nbsp; "Average knife to skin time", "Activity" and "procedure" are fields or any values in the fields.&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>Wed, 22 Feb 2012 08:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306524#M113200</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-22T08:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306525#M113201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the file now Jangan&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 09:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306525#M113201</guid>
      <dc:creator />
      <dc:date>2012-02-22T09:15:52Z</dc:date>
    </item>
    <item>
      <title>Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306526#M113202</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;There is no data in the attached file.&amp;nbsp; What data is there in Procedure field, it has numeric or text.&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>Wed, 22 Feb 2012 09:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306526#M113202</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-22T09:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306527#M113203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies, I’m new to the Qlikview game.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New file attached with data this time.&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306527#M113203</guid>
      <dc:creator />
      <dc:date>2012-02-22T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306528#M113204</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;Please check the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&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>Wed, 22 Feb 2012 10:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306528#M113204</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-22T10:20:03Z</dc:date>
    </item>
    <item>
      <title>Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306529#M113205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with NULL in set expression wont be that easy, since you can not make selections on NULL values in QlikView. Compare with adding a field containing NULL values in a list box, it is not possible to select NULL in such a list box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to include/exclude NULL in your caluclation is likely to use an IF statement and the IsNull() function. It is a bit unclear in which way you want to exclude the NULL values, so there are two approached to this as far as I can tell. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, is if you want to exclude the Dimension related to NULL procedures. This would automaticaly also exclude the NULL values from the expressions. If so, add the Dimension as a calculated dimension instead for example like below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(not isnull(Procedure), Consultant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, you want to exclude the NULL values from your expression aggregations. It could look something like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(if(not isnull(Procedure), [Episode ID])) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A more sofisticated solution would be to change your script, to add a flag the NULL values. There after you could use this flag in set expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script addition could be like; &lt;/P&gt;&lt;P&gt;Episodes: &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;*, &lt;/P&gt;&lt;P&gt;if(isnull(Procedure), 1, 0) as ProcedureIsNullFlag&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt;autonumber(replace("episode_id",':','-'), 'EP')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as %Episode_ID,&lt;BR /&gt;replace("episode_id",':','-')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Episode ID],&lt;BR /&gt;/.../ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set expression could then look like;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;ProcedureIsNullFlag={0}&amp;gt;} [Episode ID]) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306529#M113205</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2012-02-22T10:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306530#M113206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Hi Ian,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Please find attached example. I’m assuming that you arereferring Unknown as Null in your case. Please let me know if this is not thecase.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Here is the expression :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN style="color: blue; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 10pt;"&gt;[Knifeto skin time]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt;"&gt;TextCount&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 10pt;"&gt;Procedure&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; -= {'Unknown'}&amp;gt;} EpisodeID) &lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I hope this helps!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/306530#M113206</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-02-22T10:40:43Z</dc:date>
    </item>
  </channel>
</rss>

