<?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 Nested Set Analysis question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260963#M496633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your field SLA only have one single value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set expression is only evaluated once, not per record / dimension value (if you use the set expression in a chart),&amp;nbsp; so if SLA is ambiguous, QV won't know which value to put in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 23:29:08 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-01-09T23:29:08Z</dc:date>
    <item>
      <title>Nested Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260962#M496632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Hi I was debuging an issue with some set analysis and found out that when I use fields on inner expressions QV does not like it, here is an example, SLA is a field and QV does not figures it out when I use is like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;(&lt;BR /&gt;&amp;nbsp; {$&amp;lt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsAbandon&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ={0},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactIDSkillNo&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;"=Sum({$&amp;lt;test={1}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;gt;}Duration) &amp;lt; (&lt;SPAN style="text-decoration: underline;"&gt;SLA&lt;/SPAN&gt;*1000)"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp; &amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;ContactID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But when I use a straight number, it works:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;(&lt;BR /&gt;&amp;nbsp; {$&amp;lt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsAbandon&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ={0},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactIDSkillNo&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;"=Sum({$&amp;lt;test={1}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;gt;}Duration) &amp;lt; (&lt;SPAN style="text-decoration: underline;"&gt;30&lt;/SPAN&gt;*1000)"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&amp;nbsp; &amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 8pt;"&gt;ContactID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 8pt;"&gt;&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 11px; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to replace the expression with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$=(&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 11px;"&gt;SLA&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;max({}SLA)&lt;/P&gt;&lt;P&gt;num(SLA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how can I use a field inside the string so it can work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advande for you time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 22:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260962#M496632</guid>
      <dc:creator />
      <dc:date>2012-01-09T22:59:05Z</dc:date>
    </item>
    <item>
      <title>Nested Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260963#M496633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your field SLA only have one single value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set expression is only evaluated once, not per record / dimension value (if you use the set expression in a chart),&amp;nbsp; so if SLA is ambiguous, QV won't know which value to put in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 23:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260963#M496633</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-09T23:29:08Z</dc:date>
    </item>
    <item>
      <title>Nested Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260964#M496634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help swuehl, SLA has multiple values, but since I am using it inside a Pivot table chart, I asumed that each one of the subgroups will only evaluate its own subset of data, and then the value in SLA field would be unique, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the hierarchy that the pivot tale is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Dimension1&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt; Expression1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I was expecting that the Dimension1 will spilt the data and when Expression1 will execute against the subset of data, since SLA as a 1 to 1 relation with Customer then the value for SLA when evaluated will be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I dont know why its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 23:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260964#M496634</guid>
      <dc:creator />
      <dc:date>2012-01-09T23:36:50Z</dc:date>
    </item>
    <item>
      <title>Nested Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260965#M496635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; margin-bottom: 0.0001pt; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt; color: blue; font-family: 'Courier New';"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'Courier New';"&gt;&lt;BR /&gt;(&lt;BR /&gt;&amp;nbsp; {$&amp;lt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: maroon; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsAbandon&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ={0},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: maroon; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactIDSkillNo&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'Courier New';"&gt;={$(=concat(aggr(if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: maroon; font-family: 'Courier New';"&gt;Sum({$&amp;lt;test={1}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: maroon; font-family: 'Courier New';"&gt;&amp;gt;}Duration) &amp;lt; (SLA*1000),ContactIDSkillNo),Customer),','))&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'Courier New';"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; margin-bottom: 0.0001pt; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'Courier New';"&gt;&amp;nbsp; &amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: blue; font-family: 'Courier New';"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="font-size: 8pt; color: maroon; font-family: 'Courier New';"&gt;ContactID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'Courier New';"&gt;&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is better performing than not using a set analysis, i.e. traditional record based comparison (probably also using aggr() ) instead. I hope I haven't forgot a bracket or so, please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Stefan&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 23:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260965#M496635</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-09T23:51:48Z</dc:date>
    </item>
    <item>
      <title>Nested Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260966#M496636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the field SLA has only one value for each value of the dimension, you could perhaps try Only(SLA) instead of SLA .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 12:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260966#M496636</guid>
      <dc:creator>rlp</dc:creator>
      <dc:date>2012-01-26T12:33:44Z</dc:date>
    </item>
    <item>
      <title>Nested Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260967#M496637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion&amp;nbsp; Richard, I'll see if that works on my scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 16:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Analysis-question/m-p/260967#M496637</guid>
      <dc:creator />
      <dc:date>2012-01-26T16:30:22Z</dc:date>
    </item>
  </channel>
</rss>

