<?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 does not work correctly for a few rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1523964#M438246</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try with below&lt;BR /&gt;&lt;BR /&gt;Sum(aggr(sum({&amp;lt;[BG-C/MKT-C]={'BG-C','MKT-C','World'}&amp;gt;}[LY Actual MAT - EUR]),[BU],[BG],[Business Model],[Business]))&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
    <pubDate>Wed, 26 Dec 2018 09:39:49 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2018-12-26T09:39:49Z</dc:date>
    <item>
      <title>Expression does not work correctly for a few rows</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1523943#M438244</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 723px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2613i1DBABD9EEB8CF4EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have this expression in a pivot. It gives the desired result for all rows, but for one row. I find this weird and I'm not sure how to debug this one.&amp;nbsp; I appreciate any help with regard to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logic:&lt;/P&gt;&lt;P&gt;row 1 = actual = column with values from table&lt;/P&gt;&lt;P&gt;row 2 = ** to test** = column with expression&lt;/P&gt;&lt;P&gt;the user wants the total of BG-C/MKT-C actuals number to be displayed for both BG-C and MKT-C when the dimension BU is selected.&lt;/P&gt;&lt;P&gt;eg: please see rows 1, 2 and 3&lt;/P&gt;&lt;P&gt;total of BG-C &amp;amp; MKT-C = -0 + 27 = 27&lt;/P&gt;&lt;P&gt;this total is displayed along both BG-C and MKT-C rows and also the sub-total row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff8000" size="1"&gt;&lt;U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;({&amp;lt;&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;[BG-C/MKT-C]&lt;/FONT&gt;&lt;FONT size="1"&gt;={'BG-C','MKT-C','World'}&amp;gt;}&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;aggr&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;({&amp;lt;&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;[BG-C/MKT-C]&lt;/FONT&gt;&lt;FONT size="1"&gt;={'BG-C','MKT-C','World'}&amp;gt;}&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;[LY Actual MAT - EUR]&lt;/FONT&gt;&lt;FONT size="1"&gt;),&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;[BU]&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;[BG]&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;[Business Model]&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;[Business]&lt;/FONT&gt;&lt;FONT size="1"&gt;))/&lt;/FONT&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;vUnit&lt;/FONT&gt;&lt;/I&gt;&lt;U&gt;&lt;FONT color="#ff8000" size="1"&gt;) &lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(this cannot be done in script because we use dynamic dimensions and there are many more dimensions that can be dynamically added apart from BU (shown here) and for each dimension this logic is different and hence the actuals (row 1) value has to be preserved for other logic))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;for almost all rows the expression works except for a few rows highlighted. I'm not sure how to debug this one. any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT color="#ff8000" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1523943#M438244</guid>
      <dc:creator>vidhyamurali</dc:creator>
      <dc:date>2024-11-16T04:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression does not work correctly for a few rows</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1523964#M438246</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try with below&lt;BR /&gt;&lt;BR /&gt;Sum(aggr(sum({&amp;lt;[BG-C/MKT-C]={'BG-C','MKT-C','World'}&amp;gt;}[LY Actual MAT - EUR]),[BU],[BG],[Business Model],[Business]))&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 26 Dec 2018 09:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1523964#M438246</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-12-26T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression does not work correctly for a few rows</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1523989#M438247</link>
      <description>&lt;P&gt;For me your expression is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;&lt;U&gt;(&lt;/U&gt;sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;[BG-C/MKT-C]={'BG-C','MKT-C','World'}&amp;gt;}&lt;/FONT&gt;aggr(sum({&amp;lt;[BG-C/MKT-C]={'BG-C','MKT-C','World'}&amp;gt;}[LY Actual MAT - EUR]),[BU],[BG],[Business Model],[Business]))/&lt;I&gt;vUnit&lt;/I&gt;&lt;U&gt;)&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;But, Need to understand why outer set expression required? May be use &lt;STRONG&gt;NODISTINCT&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;&lt;U&gt;(&lt;/U&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;{&amp;lt;[BG-C/MKT-C]={'BG-C','MKT-C','World'}&amp;gt;}&lt;/FONT&gt;&lt;SPAN&gt;aggr&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NODISTINCT&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;[BG-C/MKT-C]&lt;/SPAN&gt;&lt;SPAN&gt;={'BG-C','MKT-C','World'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN&gt;[LY Actual MAT - EUR]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[BU]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[BG]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Business Model]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Business]&lt;/SPAN&gt;&lt;SPAN&gt;))/&lt;/SPAN&gt;&lt;I&gt;vUnit&lt;/I&gt;&lt;U&gt;)&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 10:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1523989#M438247</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-12-26T10:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression does not work correctly for a few rows</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1524031#M438252</link>
      <description>&lt;P&gt;I am curious to know what&amp;nbsp;is&lt;/P&gt;&lt;PRE&gt;vUnit&lt;/PRE&gt;&lt;P&gt;Is this 0 for some reason on the rows highlighted? What do you see when you use your expression without vUnit&lt;/P&gt;&lt;PRE&gt;(Sum({&amp;lt;[BG-C/MKT-C] = {'BG-C','MKT-C','World'}&amp;gt;} Aggr(Sum({&amp;lt;[BG-C/MKT-C] = {'BG-C','MKT-C','World'}&amp;gt;} [LY Actual MAT - EUR]), [BU], [BG], [Business Model], [Business])))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 12:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-does-not-work-correctly-for-a-few-rows/m-p/1524031#M438252</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-26T12:25:09Z</dc:date>
    </item>
  </channel>
</rss>

