<?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 Cross Selling - Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051186#M86408</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;I want to display on a pivot table the association between 2 brands in the sales orders. My expected result is something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine WhatsApp 2023-03-20 ore 15.33.31.jpg" style="width: 579px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103146i3C37B858CA06882F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagine WhatsApp 2023-03-20 ore 15.33.31.jpg" alt="Immagine WhatsApp 2023-03-20 ore 15.33.31.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I splitted the field "brand" in two fields, "brand" and "brand2" to use both in the pivot table.&lt;BR /&gt;I've tried tu use this measure:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;count(DISTINCT &lt;STRONG&gt;scontrino&lt;/STRONG&gt;) / count(total &lt;STRONG&gt;scontrino&lt;/STRONG&gt;)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;where&amp;nbsp;&lt;STRONG&gt;scontrino&lt;/STRONG&gt; is the sales order but the result is this one:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 951px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103147i7AA0B1A5BAE4661D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For sure I'm doing wrong. I have no knlowledge of statistic.&lt;/P&gt;
&lt;P&gt;Could anyone help me to solve my issue?&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 15:21:28 GMT</pubDate>
    <dc:creator>danimarc12</dc:creator>
    <dc:date>2023-03-20T15:21:28Z</dc:date>
    <item>
      <title>Cross Selling - Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051186#M86408</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;I want to display on a pivot table the association between 2 brands in the sales orders. My expected result is something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine WhatsApp 2023-03-20 ore 15.33.31.jpg" style="width: 579px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103146i3C37B858CA06882F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagine WhatsApp 2023-03-20 ore 15.33.31.jpg" alt="Immagine WhatsApp 2023-03-20 ore 15.33.31.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I splitted the field "brand" in two fields, "brand" and "brand2" to use both in the pivot table.&lt;BR /&gt;I've tried tu use this measure:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;count(DISTINCT &lt;STRONG&gt;scontrino&lt;/STRONG&gt;) / count(total &lt;STRONG&gt;scontrino&lt;/STRONG&gt;)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;where&amp;nbsp;&lt;STRONG&gt;scontrino&lt;/STRONG&gt; is the sales order but the result is this one:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 951px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103147i7AA0B1A5BAE4661D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For sure I'm doing wrong. I have no knlowledge of statistic.&lt;/P&gt;
&lt;P&gt;Could anyone help me to solve my issue?&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 15:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051186#M86408</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2023-03-20T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Selling - Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051204#M86410</link>
      <description>&lt;P&gt;Hello, Danimarc12,&lt;/P&gt;
&lt;P&gt;In the way you want to calculate it, you will not get correlation, but rather relative weight (in terms of number of orders) of all brand combinations.&lt;/P&gt;
&lt;P&gt;You get the shown result, because your brand and brand2 values are columns in the same table - most probably Sales Order table, and I guess that you have SalesOrderID in this table. If so, instead of loading your brand field again (as brand2) in the same table, try loading it in a new table, that is linked to your Sales Order table via the&amp;nbsp;SalesOrderID keyfield:&lt;/P&gt;
&lt;P&gt;NewTable: LOAD&amp;nbsp;SalesOrderID, brand as brand2 resident SalesOrders;&lt;/P&gt;
&lt;P&gt;Then you will get in your pivot the relative weights of all combinations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Iliyan&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 15:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051204#M86410</guid>
      <dc:creator>iliyansomlev</dc:creator>
      <dc:date>2023-03-20T15:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Selling - Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051215#M86412</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25006"&gt;@iliyansomlev&lt;/a&gt;&amp;nbsp;, thanks a lot for your answer.&lt;/P&gt;
&lt;P&gt;I did as you said, creating a new table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danimarc12_0-1679328367868.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103148i4FB2AFBBF09DC6BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danimarc12_0-1679328367868.png" alt="danimarc12_0-1679328367868.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;where&amp;nbsp;&lt;STRONG&gt;scontrino&lt;/STRONG&gt; is the order and&amp;nbsp;&lt;STRONG&gt;marca2&lt;/STRONG&gt; is the&amp;nbsp;&lt;EM&gt;brand2&amp;nbsp;&lt;/EM&gt;field.&lt;/P&gt;
&lt;P&gt;The result is the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danimarc12_1-1679328461375.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103149iE22CCD90E4C510D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danimarc12_1-1679328461375.png" alt="danimarc12_1-1679328461375.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It's better than before but I'm afraid if my measure is not correct.&lt;/P&gt;
&lt;P&gt;I'm using the same measure:&lt;BR /&gt;&lt;EM&gt;count(DISTINCT scontrino) / count(TOTAL scontrino)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Also, it should be a value which is not changing by selecting other filters? Because now, if I select any filter, these values % are changing.&lt;/P&gt;
&lt;P&gt;Thank a lot&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051215#M86412</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2023-03-20T16:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Selling - Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051225#M86415</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danimarc12_2-1679329635269.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103152i326A2F15C2DEC87D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danimarc12_2-1679329635269.png" alt="danimarc12_2-1679329635269.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This red one (it's the same brand in the row and column) should be 100%, correct?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051225#M86415</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2023-03-20T16:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Selling - Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051243#M86420</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;You get the weight of brands being sold compared to all sales orders. So if you have '-' in some cell this means those two brands were never sold together. The same brand in row and column will not give 100%, because it is also a weight compared to all sales orders - it shows the frequency of this brand being sold.&lt;/P&gt;
&lt;P&gt;The weights will be responsive to your selections. If you do not want this to happen, you can use {1} in set analysis or load the data as an island in the model (LOAD scontrino as scontrino2, brand as brand1 Resident Orders and LOAD scontrino as scontrino2, brand as brand2 Resident Orders ) - 2 new brands columns linked via scontrino2 field but unlinked from the rest of your model.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Iliyan&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-Selling-Pivot-Table/m-p/2051243#M86420</guid>
      <dc:creator>iliyansomlev</dc:creator>
      <dc:date>2023-03-20T17:14:29Z</dc:date>
    </item>
  </channel>
</rss>

