<?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: Using an expression within Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910260#M316071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - I have attached an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the top table, the Lost_Minutes expression is working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the bottom table, I have used the label of this expression in a second expression, called Lost Minutes &amp;gt;90. I would like this to count the number of occasions that the Lost Minutes in a session is greater than 90 minutes. However, at the moment, it is is counting all sessions, and not applying the &amp;gt;90 minutes condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 09:43:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-24T09:43:23Z</dc:date>
    <item>
      <title>Using an expression within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910258#M316069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am trying to use an expression within a set analysis, but I cannot make it work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have an expression called Lost_Minutes which is calculated as follows:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;SUM(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;th_late_st&lt;/SPAN&gt;)&lt;BR /&gt;+&lt;SPAN style="color: #0000ff;"&gt;SUM(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;th_early_fin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would then like to use this expression in a set analysis in the same chart, so that I can count the number of times (using the th_ses_id field) the result in the Lost Minutes expression is greater than 90.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;COUNT&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Lost_Minutes]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;90"&lt;/SPAN&gt;&lt;SPAN&gt;}&amp;gt;}th_ses_id) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;However, this returns a count total of all possible values, instead of limiting it to just those where the Lost Minutes are greater than 90.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;When I replace the Lost_Minutes expression with a dimension, as below, it works correctly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;COUNT&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[th_early_fin]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;90"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;th_ses_id&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use the Lost_Minutes expression in the set analysis, and if so, what am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 13:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910258#M316069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-22T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910259#M316070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;product={"=(sum(v)+sum(z))&amp;gt;47000"}&amp;gt;} v)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93655_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;try to adapt to your question or post some data&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910259#M316070</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-22T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910260#M316071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - I have attached an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the top table, the Lost_Minutes expression is working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the bottom table, I have used the label of this expression in a second expression, called Lost Minutes &amp;gt;90. I would like this to count the number of occasions that the Lost Minutes in a session is greater than 90 minutes. However, at the moment, it is is counting all sessions, and not applying the &amp;gt;90 minutes condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 09:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910260#M316071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T09:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910261#M316072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use an expression label in a set expression. What you can do is to use an expression in the search clause as per Massimo's example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Session ID] = {"=([Late Start (Calculation)]+[Early Finish (Calculation)]) &amp;gt; 90"}&amp;gt;} &lt;/P&gt;&lt;P&gt;[Late Start (Calculation)]+[Early Finish (Calculation)])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 10:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910261#M316072</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-24T10:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using an expression within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910262#M316073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - this worked as I had hoped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 12:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-expression-within-Set-Analysis/m-p/910262#M316073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-30T12:25:53Z</dc:date>
    </item>
  </channel>
</rss>

