<?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 Set analysis not working on dimension level. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272794#M1186825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, so far without the correct results however. There are more dimensions after the first and it gets funny when they are expanded, And I need it to show correctly in the total, but it is showing up for each column, just showing as 0 on the total of the column. I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(above( total sum({&amp;lt;Topincome={"Sales"}&amp;gt;} if(left(text(segvalue1),1)&amp;lt;&amp;gt;1 and left(text(segvalue1),1)&amp;lt;&amp;gt;2 and left(text(segvalue1),1)&amp;lt;&amp;gt;3, creditamt+debitamt))*-1 ,0,rowno(total)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 11:49:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-19T11:49:11Z</dc:date>
    <item>
      <title>Set analysis not working on dimension level.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272792#M1186823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 1 dimension that returns 4 results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;COGS&lt;/P&gt;&lt;P&gt;Selling&lt;/P&gt;&lt;P&gt;Gen Admin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to return the margin for only COGS which in turn needs the total of Sales. So I use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=sum({&amp;lt;Topincome={"Sales"}&amp;gt;} if(left(text(segvalue1),1)&amp;lt;&amp;gt;1 and left(text(segvalue1),1)&amp;lt;&amp;gt;2 and left(text(segvalue1),1)&amp;lt;&amp;gt;3, creditamt+debitamt))*-1&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I insert this into the Pivot table it is not returning the correct results. It is still showing 0 for every dimension that does not equal Sales. How would I show the value of sales, but on the dimension of COGS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: This works if I set a variable with a button to sales, but we wan't this to work automaticaly without having to click on something any time the data changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 11:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272792#M1186823</guid>
      <dc:creator />
      <dc:date>2011-09-19T11:37:07Z</dc:date>
    </item>
    <item>
      <title>Set analysis not working on dimension level.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272793#M1186824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think the set expression will work in a case like yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using chart inter record functions like above(), top() and similar? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 11:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272793#M1186824</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T11:44:03Z</dc:date>
    </item>
    <item>
      <title>Set analysis not working on dimension level.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272794#M1186825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, so far without the correct results however. There are more dimensions after the first and it gets funny when they are expanded, And I need it to show correctly in the total, but it is showing up for each column, just showing as 0 on the total of the column. I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(above( total sum({&amp;lt;Topincome={"Sales"}&amp;gt;} if(left(text(segvalue1),1)&amp;lt;&amp;gt;1 and left(text(segvalue1),1)&amp;lt;&amp;gt;2 and left(text(segvalue1),1)&amp;lt;&amp;gt;3, creditamt+debitamt))*-1 ,0,rowno(total)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 11:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272794#M1186825</guid>
      <dc:creator />
      <dc:date>2011-09-19T11:49:11Z</dc:date>
    </item>
    <item>
      <title>Set analysis not working on dimension level.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272795#M1186826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe I misunderstood your problem, could you post a small sample here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272795#M1186826</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Set analysis not working on dimension level.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272796#M1186827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a lot of data in this document so here are some screen shots of the table:&lt;/P&gt;&lt;P&gt;The column Sales Set test is using the formula:&lt;/P&gt;&lt;P&gt;rangesum(above( total sum({&amp;lt;Topincome={"Sales"}&amp;gt;} if(left(text(segvalue1),1)&amp;lt;&amp;gt;1 and left(text(segvalue1),1)&amp;lt;&amp;gt;2 and left(text(segvalue1),1)&amp;lt;&amp;gt;3, creditamt+debitamt))*-1 ,0,rowno(total)))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7371_Untitled.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;As you can see it shows the Income value of Sales correctly on each line when it is collapsed, just not on the total line (Which is where I need it). On the second image you can see that as soon as I expand one of the columns the value disappears.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272796#M1186827</guid>
      <dc:creator />
      <dc:date>2011-09-19T12:45:01Z</dc:date>
    </item>
    <item>
      <title>Set analysis not working on dimension level.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272797#M1186828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coming back to your original approach, have you tried adding the TOTAL QUALIFIER to your sum, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=sum({&amp;lt;Topincome={"Sales"}&amp;gt;} TOTAL if(left(text(segvalue1),1)&amp;lt;&amp;gt;1 and left(text(segvalue1),1)&amp;lt;&amp;gt;2 and left(text(segvalue1),1)&amp;lt;&amp;gt;3, creditamt+debitamt))*-1&lt;/CODE&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;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 14:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272797#M1186828</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Set analysis not working on dimension level.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272798#M1186829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to be what I needed. Thank you very much. I need to look into adding Total qualifier's I seem to be running into situations that need them a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 14:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-on-dimension-level/m-p/272798#M1186829</guid>
      <dc:creator />
      <dc:date>2011-09-19T14:04:42Z</dc:date>
    </item>
  </channel>
</rss>

