<?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: P() set analysis with maxstring in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/P-set-analysis-with-maxstring/m-p/58358#M9718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - that makes sense. I think I'll have to split them out into expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 11:46:06 GMT</pubDate>
    <dc:creator>juleshartley</dc:creator>
    <dc:date>2018-02-06T11:46:06Z</dc:date>
    <item>
      <title>P() set analysis with maxstring</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-with-maxstring/m-p/58356#M9716</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;I've got a pivot table with BU_ID and BU_ID1 (unrelated but the same) as dimensions. BU_ID1 is a floating single field table. I want to show the count of %UC_ID where it exists in BU_ID but ALSO in another BU_ID.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192582_Capture.JPG" style="height: 142px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I am using this expression:&lt;/P&gt;&lt;P&gt;=count( distinct {&amp;lt;&lt;/P&gt;&lt;P&gt;%UC_ID = P({&amp;lt;BU_ID={'$(=maxstring(BU_ID1))'}&amp;gt;}%UC_ID)&lt;/P&gt;&lt;P&gt;&amp;gt;} %UC_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the idea being that the P() element returns all possible %UC_ID's in the relevant BU_ID1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This, as you can see, doesn't work but just returns the same across all values of BU_ID1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I replace the 'maxstring' part with a hardcoded BU eg. 'GI' then it returns what I would expect (but obviously just for that single BU)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-with-maxstring/m-p/58356#M9716</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2018-02-06T11:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis with maxstring</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-with-maxstring/m-p/58357#M9717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis doesn't get evaluated row-wise of the chart but &lt;STRONG&gt;once for the chart&lt;/STRONG&gt;. You may try without set analysis like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count( distinct If(%UC_ID = BU_ID1, %UC_ID ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-with-maxstring/m-p/58357#M9717</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-06T11:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis with maxstring</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-with-maxstring/m-p/58358#M9718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - that makes sense. I think I'll have to split them out into expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-with-maxstring/m-p/58358#M9718</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2018-02-06T11:46:06Z</dc:date>
    </item>
  </channel>
</rss>

