<?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 Expressions in Pivot with different dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expressions-in-Pivot-with-different-dimensions/m-p/368312#M576438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;you are right! Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2012 09:28:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-28T09:28:39Z</dc:date>
    <item>
      <title>Expressions in Pivot with different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-Pivot-with-different-dimensions/m-p/368310#M576436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two pivot tables. The first one shows the number of item sold by item and model. The second pivot shows the price of each item by model.&lt;/P&gt;&lt;P&gt;The first pivot uses the model from orders, while the second pivot uses the model from list.&lt;/P&gt;&lt;P&gt;All is ok, but what if I want to create only one pivot showing all two measures (number of items sold and price) by item and model for all items and models (i.e. a matrix). The values are wrong (i.e. ART (2070) is sold in NUVOLAX model and not in LUNAX model).&lt;/P&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 15:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-Pivot-with-different-dimensions/m-p/368310#M576436</guid>
      <dc:creator />
      <dc:date>2012-05-24T15:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in Pivot with different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-Pivot-with-different-dimensions/m-p/368311#M576437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your model, there is relations between "ModelloTestata" and "ModelloDP".&lt;/P&gt;&lt;P&gt;If you use 1 of this dimension in your chart, every expression will consider this relation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I advice you to use a detached dimension that contains the distinct values of the both dimensions, and use it as dimension in your graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;DistinctModelli_TMP:&lt;/P&gt;&lt;P&gt;LOAD ModelloDP AS DistinctModello_TMP,&lt;/P&gt;&lt;P&gt;DesModelloDP AS DistinctDesModello_TMP&lt;/P&gt;&lt;P&gt;RESIDENT ModelliDP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE(DistinctModelli_TMP)&lt;/P&gt;&lt;P&gt;LOAD ModelloTestata AS DistinctModello_TMP,&lt;/P&gt;&lt;P&gt;DesModelloTestata AS DistinctDesModello_TMP&lt;/P&gt;&lt;P&gt;RESIDENT ModelliTestata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DistinctModelli:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT DistinctModello_TMP AS DistinctModello,&lt;/P&gt;&lt;P&gt;DistinctDesModello_TMP AS DistinctDesModello&lt;/P&gt;&lt;P&gt;RESIDENT DistinctModelli_TMP&lt;/P&gt;&lt;P&gt;ORDER BY DistinctModello_TMP ASC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE DistinctModelli_TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;Use the "&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;DistinctDesModello" dimension in your graph, and usee a "if" condition in your expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;sum(if(DistinctModello = ModelloTestata, Qta))&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;And&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;concat(if(DistinctModello = ModelloDP, DeltaPunti), ', ')&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;&lt;IMG alt="2012-05-25_095333.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/14735_2012-05-25_095333.png" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 07:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-Pivot-with-different-dimensions/m-p/368311#M576437</guid>
      <dc:creator />
      <dc:date>2012-05-25T07:57:05Z</dc:date>
    </item>
    <item>
      <title>Expressions in Pivot with different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-Pivot-with-different-dimensions/m-p/368312#M576438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;you are right! Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 09:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-Pivot-with-different-dimensions/m-p/368312#M576438</guid>
      <dc:creator />
      <dc:date>2012-05-28T09:28:39Z</dc:date>
    </item>
  </channel>
</rss>

