<?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: nested set analysis - question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041979#M350593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to stick to your advanced search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;[Lot Number]={&lt;SPAN style="color: #ff6600;"&gt;=not isnull(only({&amp;lt;[Sample ID]={'&lt;SPAN style="color: #3366ff;"&gt;CHS-013&lt;/SPAN&gt;'}&amp;gt;}[Lot Number]))"&lt;/SPAN&gt;}, [Sample ID] = {"&lt;SPAN style="color: #0000ff;"&gt;CHS-022&lt;/SPAN&gt;"}&amp;gt; }RESULT_TEXT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 11:04:29 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-21T11:04:29Z</dc:date>
    <item>
      <title>nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041975#M350589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed &lt;A href="https://community.qlik.com/people/FABRICE44"&gt;FABRICE44&lt;/A&gt; document and used nested set analysis. &lt;/P&gt;&lt;P&gt;See below for an excerpt from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfect, if the field is numbers but not text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;[Lot Number]={&lt;SPAN style="color: #ff6600;"&gt;"=only({&amp;lt;[Sample ID]={'&lt;SPAN style="color: #3366ff;"&gt;CHS-013&lt;/SPAN&gt;'}&amp;gt;}[Lot Number])"&lt;/SPAN&gt;}, [Sample ID] = {"&lt;SPAN style="color: #0000ff;"&gt;CHS-022&lt;/SPAN&gt;"}&amp;gt; }RESULT_TEXT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above, Lot Number, Sample ID and RESULT_TEXT are fields.&amp;nbsp; I am trying to get Lot Numbers where the Sample ID is 'CHS-013' and then find the Lot numbers that have a&amp;nbsp; Sample ID of 'CHS-022'.&amp;nbsp; This works fine if the Lot Number field is numbers, but does not if the Lot Numbers field is text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Natraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spent over 20 hrs with this!&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;But we can also decide to search the MANUFACTURERs on a specific period, or for specific products. We&lt;/P&gt;&lt;P&gt;will create an inner set:&lt;/P&gt;&lt;P&gt;sum( {$ &amp;lt;MANUFACTURER_LDESC={"=sum({1&amp;lt;TIME_SDESC={'P 01/13'},&lt;/P&gt;&lt;P&gt;CATEGORY_LDESC={'ACC','CHEESE CAKE’ }&amp;gt;} [Volume Sales])&amp;gt;100000"} &amp;gt;} [Volume Sales])&lt;/P&gt;&lt;P&gt;Remember that the members could be enclosed between single or double quotes. Because the function&lt;/P&gt;&lt;P&gt;uses double quotes, we will use for the members either the single quotes or the square brackets [].&lt;/P&gt;&lt;P&gt;I want to find the Manufacturers whose sales are over 100,000 for the 2 categories CHEESE CAKE and&lt;/P&gt;&lt;P&gt;ACC in January 2013 (period P01/13). But I want to remove from that list those whose sales are lower than&lt;/P&gt;&lt;P&gt;50,000 for all categories in January 2012:&lt;/P&gt;&lt;P&gt;I need two sets : {&amp;lt;set 1&amp;gt; - &amp;lt;set 2&amp;gt;}, each of them will use the function sum():&lt;/P&gt;&lt;P&gt;Set 1 = 1 &amp;lt;MANUFACTURER_LDESC={"=sum({1&amp;lt; TIME_SDESC={'P&lt;/P&gt;&lt;P&gt;01/13'},CATEGORY_LDESC={'ACC','CHEESE CAKE'}&amp;gt;} [Value Sales])&amp;gt;50000"} &amp;gt;&lt;/P&gt;&lt;P&gt;Set 2 = &amp;lt;MANUFACTURER_LDESC={"=sum({1&amp;lt; TIME_SDESC={'P 01/12'},CATEGORY_LDESC={'*'}&amp;gt;}&lt;/P&gt;&lt;P&gt;[Value Sales])&amp;gt;100000"} &amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 22:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041975#M350589</guid>
      <dc:creator />
      <dc:date>2016-01-20T22:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041976#M350590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain what you are trying to accomplish with this expression? On first reading, there seem to be a number of contradictions which I cannot explain. And your code has not much to do with the example at the bottom, except for having two set modifiers too.&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;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041976#M350590</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-20T23:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041977#M350591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should also work with text values, when you are using a dollar sign expansion instead of an advanced search that evaluates to a boolean expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;[Lot Number]={'$(&lt;SPAN style="color: #ff6600;"&gt;=only({&amp;lt;[Sample ID]={'&lt;SPAN style="color: #3366ff;"&gt;CHS-013&lt;/SPAN&gt;'}&amp;gt;}[Lot Number]))'&lt;/SPAN&gt;}, [Sample ID] = {"&lt;SPAN style="color: #0000ff;"&gt;CHS-022&lt;/SPAN&gt;"}&amp;gt; }RESULT_TEXT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Peter that I don't fully understand the business logic of your set expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041977#M350591</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-20T23:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041978#M350592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologize for the cryptic question.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;I tried the $ expansion thing you suggest - no luck.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is the table (from excel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="779" style="width: 262px; height: 699px;" width="260"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Lot Number&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="124"&gt;Sample ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;RESULT_TEXT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-022&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;14&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;17&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;18&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;19&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CHS-155&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Here is what I like to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Obtain the Lot Numbers corresponding to Sample ID = CHS-013&lt;/P&gt;&lt;P&gt;2. Find the Result_text for Sample ID = CHS-022 corresponding to the Lot Numbers obtained for Sample ID = CHS-013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Inner Set will do the first part: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff6600;"&gt;"=only({&amp;lt;[Sample ID]={'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;CHS-013&lt;/SPAN&gt;'}&amp;gt;}[Lot Number])"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This will return a list of Lot Numbers that correspond to the Sample ID = CHS-013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg({&amp;lt;[Lot Number]={&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff6600;"&gt;"=only({&amp;lt;[Sample ID]={'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;CHS-013&lt;/SPAN&gt;'}&amp;gt;}[Lot Number])"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}, [Sample ID] = {"&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;CHS-022&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"}&amp;gt; }RESULT_TEXT)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Now if I put it into the outer set that will look for these Lot Numbers AND the condition that Sample ID = CHS-013, then I will end up with the Result_Text corresponding to the Sample ID = CHS-022, but only for the Lot Numbers corresponding to CHS-013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Again, this works fine if my Lot Numbers are 1, 2 , 3.. 20.&amp;nbsp; But if I change it to A, B, C, D etc, it doesnt work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Number works&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Untitled pictureNum.png" class="jive-image image-1" height="272" src="/legacyfs/online/112162_Untitled pictureNum.png" style="height: 272.141px; width: 327px;" width="327" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled pictureText.png" class="jive-image image-2" height="272" src="/legacyfs/online/112166_Untitled pictureText.png" style="height: 271.73px; width: 403px;" width="403" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled picture.Dollar.png" class="jive-image image-3" src="/legacyfs/online/112167_Untitled picture.Dollar.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Text and $ expansion dont work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks for your help..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Natraj&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 02:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041978#M350592</guid>
      <dc:creator />
      <dc:date>2016-01-21T02:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041979#M350593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to stick to your advanced search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;[Lot Number]={&lt;SPAN style="color: #ff6600;"&gt;=not isnull(only({&amp;lt;[Sample ID]={'&lt;SPAN style="color: #3366ff;"&gt;CHS-013&lt;/SPAN&gt;'}&amp;gt;}[Lot Number]))"&lt;/SPAN&gt;}, [Sample ID] = {"&lt;SPAN style="color: #0000ff;"&gt;CHS-022&lt;/SPAN&gt;"}&amp;gt; }RESULT_TEXT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 11:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041979#M350593</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-21T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041980#M350594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your suggestion worked!  with the not isnull.  What is the reason? How does&lt;/P&gt;&lt;P&gt;it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to do this at the table level..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to logon to qlik community now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Natraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041980#M350594</guid>
      <dc:creator />
      <dc:date>2016-01-21T15:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041981#M350595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also unable to mark your answer as correct!&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;Natraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041981#M350595</guid>
      <dc:creator />
      <dc:date>2016-01-21T15:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041982#M350596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use the p() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;avg({&amp;lt;[Lot Number]= p(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff6600;"&gt;{&amp;lt;[Sample ID]={'&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;CHS-013&lt;/SPAN&gt;'}&amp;gt;} )&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;, [Sample ID] = {"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;CHS-022&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;"}&amp;gt; } RESULT_TEXT)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041982#M350596</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-21T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: nested set analysis - question</title>
      <link>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041983#M350597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your help.&amp;nbsp; This is not giving me an option to mark your answer correct!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-set-analysis-question/m-p/1041983#M350597</guid>
      <dc:creator />
      <dc:date>2016-01-21T22:13:14Z</dc:date>
    </item>
  </channel>
</rss>

