<?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: Multiplication in Pivot Chart works only for non-empty dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356356#M132252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see no significant difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean I'm able to reproduce it in my simplified example. Although I see no reason why it shouldn't work in that example, it does only work if I use another way/workaround. Is there any explanation to this behaviour? Maybe it's possible to set empty Service Group to a certain value. I have to discuss it with my colleagues. But that's then another workaround. I mean I really see some advantages in using QlikView but the deeper I go into detail the more I see unexpected behaviour and workaround solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 07:30:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-19T07:30:11Z</dc:date>
    <item>
      <title>Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356350#M132246</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;In my Pivot Chart I use three dimensions (account group, account sub group and service group). Account group and account sub group are vertical dimensions, service group is horizontal dimension. That means values of account group and account sub group are in lines and values of service group are in colums. Now I want to multiply my figures for certain account groups by -1. This works for all service groups except the last column. The last column shows figures without any service group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you'll find a small example. Could someone please explain to me why the last column isn't multiplied by -1 and how can this be solved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 10:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356350#M132246</guid>
      <dc:creator />
      <dc:date>2012-07-18T10:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356351#M132247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(If(AccountGroup = 'I',-1,1)*Amount) &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 10:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356351#M132247</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-18T10:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356352#M132248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works in my small example. But in real dashboard this leads to complete different figures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 11:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356352#M132248</guid>
      <dc:creator />
      <dc:date>2012-07-18T11:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356353#M132249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(Amount) * If(aggr(nodistinct AccountGroup,AccountNo) = 'I',-1,1)&lt;/EM&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;edit:&lt;/P&gt;&lt;P&gt;Or maybe fixing your missing ServiceGroup problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 13:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356353#M132249</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-18T13:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356354#M132250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same result. Every figure in the last column is multiplied by -1 instead of just the ones of special account groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the system it's possible to leave ServiceGroup blank. So, that's not an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 15:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356354#M132250</guid>
      <dc:creator />
      <dc:date>2012-07-18T15:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356355#M132251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any idea why the suggested solutions (I assume the second works also only your side) work in your sample but not in your real app? Any noticeable differences in the data model? &lt;/P&gt;&lt;P&gt;Would be great if you could adapt your sample in a way that we can reproduce the behaviour also with my suggested expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And again, it might be worth to think about introducing a service value for a 'not entered' or 'unknown' ServiceGroup (in your script / QV model only, not touching the source system's data). This should solve your problem right away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Multifacts:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD AccountNo, &lt;STRONG&gt;if(len(trim(Service)),Service, 'unknown') as Service,&lt;/STRONG&gt; Amount Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; AccountNo, Service, Amount&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1, A, -100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1, D, -50&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1,&amp;nbsp; , -75&lt;/EM&gt;&lt;/P&gt;&l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ccountNo, AccountGroup, AccountSubGroup, Sort&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1, I, S, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 2, C, D, 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 15:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356355#M132251</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-18T15:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356356#M132252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see no significant difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean I'm able to reproduce it in my simplified example. Although I see no reason why it shouldn't work in that example, it does only work if I use another way/workaround. Is there any explanation to this behaviour? Maybe it's possible to set empty Service Group to a certain value. I have to discuss it with my colleagues. But that's then another workaround. I mean I really see some advantages in using QlikView but the deeper I go into detail the more I see unexpected behaviour and workaround solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 07:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356356#M132252</guid>
      <dc:creator />
      <dc:date>2012-07-19T07:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356357#M132253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't call assigning a value to 'unknown' or 'not set' Service/ServiceGroup a workaround. You actually want to analyze the amounts assigned to these (if not, you could enable 'suppress NULL' in dimension tab, so I wouldn't bother creating a value for these cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that it is not intuitive that you can't just call the dimension value for the first dimension like this, I believe (but that's based on my limited knowledge on how QV actually works in detail) that this is due to the fact that you actually don't have a link between the Service table and the Multifacts table in case of NULL.&lt;/P&gt;&lt;P&gt;So QV can't unambigously resolve the AccountGroup following the links from Service via Multifacts to Account table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can work around this using similar expressions like a posted above, forcing QV to find a way. But the solution I would favor is, as said, cleaning your data model, i.e. creating the missing link if you need to analyze this aspect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of 'unknown', you could call the Link '-', so you or your colleagues even wouldn't notice a difference to today's implementation (except the sign of the amount should be correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility might be to correct the sign of the amounts (for example in the load script), if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 09:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356357#M132253</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-19T09:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication in Pivot Chart works only for non-empty dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356358#M132254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see your point, I think best solution is to set-up some kind of service group for empty/NULL values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in that case I've got another issue. The amount is not linked to Service Group by Service Code. It's linked by some kind of order. That means there's Amount and OrderID in Multifacts table and OrderID and ServiceGroup in another one. That means it would be possible to set-up ServiceGroup for internal orders (these haven't got any ServiceGroup). But it wouldn't be possible to set-up ServiceGroup if the Amount isn't linked to any OrderID. Any idea how this could be solved without moving ServiceGroup column from Order table to Multifacts table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 14:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-in-Pivot-Chart-works-only-for-non-empty-dimension/m-p/356358#M132254</guid>
      <dc:creator />
      <dc:date>2012-07-19T14:49:14Z</dc:date>
    </item>
  </channel>
</rss>

