<?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 Association between 2 products in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073493#M88043</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;I have an issue with an expression. This is my pivot table where I have the dimension&amp;nbsp;&lt;STRONG&gt;reparto&lt;/STRONG&gt; in the rows and &lt;STRONG&gt;reparto2&lt;/STRONG&gt; in the columns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107616iECD089B06918580A/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;I have used the following expression:&amp;nbsp;&lt;U&gt;&lt;EM&gt;count (distinct&amp;nbsp;&lt;STRONG&gt;scontrino&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/U&gt; to calculate the number of order with both of the products.&lt;/P&gt;
&lt;P&gt;My goal is to display a value which divides this number by the total of order for each product. This total is the number underlined. So I want to display in order:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;BARBERIA:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (91/91 ) &lt;STRONG&gt;100%&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1/91)&amp;nbsp;&lt;STRONG&gt;1.09%&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; (2/91) &lt;STRONG&gt;2.19%&lt;/STRONG&gt;....&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DESIGN:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1/401)&amp;nbsp;&lt;STRONG&gt;0.25%&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; (401/401)&amp;nbsp;&lt;STRONG&gt;100%&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp;(1/401) &lt;STRONG&gt;0.25%&lt;/STRONG&gt;.....&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Could anyone help me to write the correct expression to achieve my goal?&lt;/P&gt;
&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2023 12:33:01 GMT</pubDate>
    <dc:creator>danimarc12</dc:creator>
    <dc:date>2023-05-20T12:33:01Z</dc:date>
    <item>
      <title>Association between 2 products</title>
      <link>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073493#M88043</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;I have an issue with an expression. This is my pivot table where I have the dimension&amp;nbsp;&lt;STRONG&gt;reparto&lt;/STRONG&gt; in the rows and &lt;STRONG&gt;reparto2&lt;/STRONG&gt; in the columns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107616iECD089B06918580A/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;I have used the following expression:&amp;nbsp;&lt;U&gt;&lt;EM&gt;count (distinct&amp;nbsp;&lt;STRONG&gt;scontrino&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/U&gt; to calculate the number of order with both of the products.&lt;/P&gt;
&lt;P&gt;My goal is to display a value which divides this number by the total of order for each product. This total is the number underlined. So I want to display in order:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;BARBERIA:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (91/91 ) &lt;STRONG&gt;100%&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1/91)&amp;nbsp;&lt;STRONG&gt;1.09%&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; (2/91) &lt;STRONG&gt;2.19%&lt;/STRONG&gt;....&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DESIGN:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1/401)&amp;nbsp;&lt;STRONG&gt;0.25%&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; (401/401)&amp;nbsp;&lt;STRONG&gt;100%&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp;(1/401) &lt;STRONG&gt;0.25%&lt;/STRONG&gt;.....&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Could anyone help me to write the correct expression to achieve my goal?&lt;/P&gt;
&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 12:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073493#M88043</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2023-05-20T12:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Association between 2 products</title>
      <link>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073517#M88044</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/128073"&gt;@danimarc12&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;count (distinct scontrino) /
count(total &amp;lt;reparto&amp;gt;{&amp;lt;scontrino={"=reparto=reparto2"}&amp;gt;} distinct scontrino)

or

count (distinct scontrino) /
count(distinct total &amp;lt;reparto&amp;gt;if(reparto=reparto2,scontrino))
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 20 May 2023 22:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073517#M88044</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-05-20T22:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Association between 2 products</title>
      <link>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073554#M88049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;thanks for your answer. It still not working&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt; This is the result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107625i2ED5C27CEC4A4435/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura1.PNG" alt="Cattura1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2023 15:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073554#M88049</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2023-05-21T15:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Association between 2 products</title>
      <link>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073574#M88052</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/128073"&gt;@danimarc12&lt;/a&gt;&amp;nbsp; which expression you are using. make sure that field names are correct in your expression&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2023 21:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073574#M88052</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-05-21T21:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Association between 2 products</title>
      <link>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073952#M88084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, I've used both of the expressions.&lt;/P&gt;
&lt;P&gt;First expression:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="expr1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107711i0462DE00DB091555/image-size/medium?v=v2&amp;amp;px=400" role="button" title="expr1.PNG" alt="expr1.PNG" /&gt;&lt;/span&gt;Result:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="res1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107712iCF8D807E0BA01260/image-size/large?v=v2&amp;amp;px=999" role="button" title="res1.PNG" alt="res1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second Expression:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="expr2.PNG" style="width: 390px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107713i95EA410037A3B1F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="expr2.PNG" alt="expr2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="res1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107712iCF8D807E0BA01260/image-size/large?v=v2&amp;amp;px=999" role="button" title="res1.PNG" alt="res1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 15:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Association-between-2-products/m-p/2073952#M88084</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2023-05-22T15:43:47Z</dc:date>
    </item>
  </channel>
</rss>

