<?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 Expression Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284867#M1183298</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;It seems you are getting a timestamp (day, month, year, hours, minutes and seconds) and you are doing a lot of string working with that. QlikView has some date and timestamp functions that can help you doing that part. Can you please share an example of a record for WT_WorkDateStart, TimeFinal and TimeFinal_1 so we can see its format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, the possible values of that expression, if I'm not wrong are 0, 1 and 2. Set analysis will not return that, and you will need a conditional If() anyway, but it may help you with the string functions. In call cases, passing that calculation to the script may be a good idea and worth trying, since it will improve your chart performance notably.&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 13:01:54 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-12-07T13:01:54Z</dc:date>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284866#M1183297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;I want put this expression in qlikview with &lt;STRONG&gt;Set Analysis&lt;/STRONG&gt;, anyone know how can i do this?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;This expression takes long time to run .. I need Help! &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WT_WorkDateStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vWsCalendarMon&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TimeFinal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),2)) &amp;amp; ':' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TimeFinal_1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'mm') &amp;amp; ':' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TimeFinal_1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'ss')))=2,1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WT_WorkDateEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vWsCalendarMon&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;' '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TimeFinal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),2)) &amp;amp; ':' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TimeFinal_1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'mm') &amp;amp; ':' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TimeFinal_1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'ss')))=2,2,0)) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284866#M1183297</guid>
      <dc:creator />
      <dc:date>2011-12-07T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284867#M1183298</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;It seems you are getting a timestamp (day, month, year, hours, minutes and seconds) and you are doing a lot of string working with that. QlikView has some date and timestamp functions that can help you doing that part. Can you please share an example of a record for WT_WorkDateStart, TimeFinal and TimeFinal_1 so we can see its format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, the possible values of that expression, if I'm not wrong are 0, 1 and 2. Set analysis will not return that, and you will need a conditional If() anyway, but it may help you with the string functions. In call cases, passing that calculation to the script may be a good idea and worth trying, since it will improve your chart performance notably.&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 13:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284867#M1183298</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-07T13:01:54Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284868#M1183299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Miguel, thanqs for your answer, but i &lt;SPAN class="hps"&gt;thought in Set Analysis it was very faster, am I wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 13:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284868#M1183299</guid>
      <dc:creator />
      <dc:date>2011-12-07T13:12:03Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284869#M1183300</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;You're right: set analysis is faster than any conditional. Actually the larger your data set is, the faster set analysis will perform &lt;EM&gt;compared&lt;/EM&gt; to an If(), to the extent that in some cases an If() will cause an error, and set analysis will eventually render the chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But&lt;/STRONG&gt; set analysis cannot &lt;STRONG&gt;replace&lt;/STRONG&gt; a conditional in some cases, and you may need an If() for that chart. As I mentioned above, set analysis is evaluated once and for the whole chart, and then the expressions are evaluated based on that set of selections (set analysis is no more and no less than a set of field selections).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, set analysis cannot return a conditional value (1 here, 2 there, 3 everywhere...) that seems to be your case. That's why I asked about your data and your requirements, because if your dataset is huge enough, you may need to pass some aggregations to the script so you needn't a conditional. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes some sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284869#M1183300</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-07T14:40:45Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284870#M1183301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Miguel, i have one question:&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;SPAN class="hps"&gt;I have one&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;pivot&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;hours&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;00:00&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;h to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;23:00&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;h&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(first&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dimension&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;second&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dimension&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;i have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;minutes&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;on&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the hour and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I wanted&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;condition&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;values, then the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;pivot&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expanding, else collapse the table or the columns. Do you understand? Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284870#M1183301</guid>
      <dc:creator />
      <dc:date>2011-12-07T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284871#M1183302</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;In the same way you build a master calendar, based usually on a date (day, month, year) and you create as many date dimensions as you need (quarter, month, monh year, week, day of week, season... you name it) you should create one calendar based on hours with more time related dimensions (minutes, seconds and so on). This will make easier to display which times correspond to which dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284871#M1183302</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-07T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284872#M1183303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No, i want say this: &lt;STRONG&gt;if (Count(fieldx)=1, expand,collapse) &lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;expand=expand column in pivot table&lt;/P&gt;&lt;P&gt;collapse=collapse column in pivot table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do you know any way for make this condition,please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284872#M1183303</guid>
      <dc:creator />
      <dc:date>2011-12-07T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284873#M1183304</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;That's the way I'd do it in one chart. But rather I'd create two different charts, one with each expression, and show or hide the chart depending on a variable value, for example. That means more work (every changes has to be done twice) but far better performance. If that's not what you want, I'm afraid I'm not getting you.&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 15:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284873#M1183304</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-07T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Expression Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284874#M1183305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I only have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;pivot&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;no&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;graph.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;And&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I want to expand&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;single dimension&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if my&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;condition is true&lt;/SPAN&gt;&lt;SPAN&gt;, but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do not know how&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;I was more&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;clear?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 16:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Set-Analysis/m-p/284874#M1183305</guid>
      <dc:creator />
      <dc:date>2011-12-07T16:05:43Z</dc:date>
    </item>
  </channel>
</rss>

