<?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: Expression in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424318#M158088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The M in &lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;ProductmanufPart &lt;/EM&gt;&lt;/STRONG&gt;isn't capitalized, I don't know if this is going to solve your problem but it's a start.&amp;nbsp; Can you post a sample of your file so we can take a look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2013 12:16:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-03T12:16:11Z</dc:date>
    <item>
      <title>Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424317#M158087</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;&lt;/P&gt;&lt;P&gt;I'm scratching my head here why this isn't working and hoping someone can enlighten me on why its not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sum calculation where I'm using set analysis to restrict the sum to the total stock on items with the same manufacturer part as the item being reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductManufPart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=only(ProductManufPart))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StockSIQty&lt;/SPAN&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: 10pt;"&gt;I've tried the above and other combinations i.e.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductManufPart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=only(ProductManufPart))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StockSIQty&lt;/SPAN&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="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductManufPart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={=&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(only(ProductManufPart))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StockSIQty&lt;/SPAN&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: 10pt;"&gt;None seem to work, however when I actually put the manufacturer part instead of the expression i.e. only(ProductManufPart) for the first line is 'ABCD' then it works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My thanks in advance for any suggestions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Derek &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424317#M158087</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2013-05-03T12:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424318#M158088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The M in &lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;ProductmanufPart &lt;/EM&gt;&lt;/STRONG&gt;isn't capitalized, I don't know if this is going to solve your problem but it's a start.&amp;nbsp; Can you post a sample of your file so we can take a look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424318#M158088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-03T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424319#M158089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kevin, just spotted that, it was a typo in writing it out, in the actual qvw it was correct, I've corrected the above to save any confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424319#M158089</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2013-05-03T12:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424320#M158090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11.111111640930176px; background-color: #ffffff;"&gt;ProductManufPart&lt;/SPAN&gt; = {"=$(=only(&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11.111111640930176px; background-color: #ffffff;"&gt;ProductManufPart&lt;/SPAN&gt;))"}&amp;gt;}&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;StockSIQty&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424320#M158090</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-03T12:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424321#M158091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ItemA and ItemB both share ManufPart of 'ABCD', Column 'Item Stock' contains individual stocks of 10 and 5, I want 'ManufPart Stock' to have 15 on both ItemA and ItemB. I've included two additional columns of ManufPart using the expression =only(ProductManufPart) to show it does equate to 'ABCD' for both ItemA and ItemB and a further column showing if I hardcode 'ABCD' into the expression it does equate to 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424321#M158091</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2013-05-03T12:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424322#M158092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thansk er.mohit, unfortunately didn't work. I've now included a test file that you can use to try alternatives.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424322#M158092</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2013-05-03T12:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424323#M158093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're trying to use set analysis in the wrong way. Set Analysis will only get evaluated once for your objects, it does not get evaluated for every single row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why it doesn't work, because only(&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;ProductManufPart&lt;/SPAN&gt;) will actually return a null value, because there is more than one possible value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to do it like this sum(aggr(sum(total &amp;lt;ProductManufPart&amp;gt; StockSIQty),ProductManufPart,Item)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424323#M158093</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-05-03T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424324#M158094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Daniel, I wasn't aware it didn't evaluate within set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424324#M158094</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2013-05-03T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424325#M158095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check with this Sum(TOTAL&amp;lt;ProductManufPart&amp;gt; StockSIQty)&lt;/P&gt;&lt;P&gt;Aggr function - affects performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424325#M158095</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-05-03T13:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424326#M158096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I agree, but your expression won't work because &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ProductManufPart&lt;/SPAN&gt; is not a dimension in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424326#M158096</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-05-03T13:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424327#M158097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you checked? by hiding the column?&lt;/P&gt;&lt;P&gt;I meant after including that in dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424327#M158097</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-05-03T13:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424328#M158098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424328#M158098</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-05-03T13:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424329#M158099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I could do that to save unnecssary aggregation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424329#M158099</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2013-05-03T13:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424330#M158100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good idea Celambarasan, thanks. It might not work if the 2nd dimension can take several values for the the first dimension which seems is not the case here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 14:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Set-Analysis/m-p/424330#M158100</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-05-03T14:12:23Z</dc:date>
    </item>
  </channel>
</rss>

