<?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 to know the mix product in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405345#M568932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the trick here is to use set analysis to exclude the family selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place products as your dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add an expression to eliminate family ie count({&amp;lt;family=&amp;gt; value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will effectively give you the count of all products bought by someone in a particular family.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 14:21:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-11T14:21:15Z</dc:date>
    <item>
      <title>Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405343#M568930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;I would have an expression in a chart, that can let me know what else custumers buy when they buy a specific product.&lt;/P&gt;&lt;P&gt;I attached for you perusal an excel file with three sheets. &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Sheet 1 : customer details&lt;/LI&gt;&lt;LI&gt;Sheet 2: order details&lt;/LI&gt;&lt;LI&gt;Sheet 3 : product details&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to select a Family and view what else, the custumers those buy the selected family , buy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405343#M568930</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-11T13:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405344#M568931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create another Table within your load scirpt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;OtherProductOrders:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;[Order N°]&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;[Cod. Product]&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;OtherProductCode&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Orders;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;INNER&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;[Cod. Product]&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;OtherProductCode&lt;SPAN style="color: #000000;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;[Desc. Product]&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;OtherProductDescr&lt;SPAN style="color: #000000;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Family&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;OtherFamily&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Products; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Then you can display i.e. OtherFamily in a listbox or diagram.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;(Change "Orders" and "Products" to appropriate table names in your script)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405344#M568931</guid>
      <dc:creator />
      <dc:date>2012-10-11T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405345#M568932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the trick here is to use set analysis to exclude the family selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place products as your dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add an expression to eliminate family ie count({&amp;lt;family=&amp;gt; value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will effectively give you the count of all products bought by someone in a particular family.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 14:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405345#M568932</guid>
      <dc:creator />
      <dc:date>2012-10-11T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405346#M568933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is nice for aggregation functions. But how would you display a list of Products / Families in this way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405346#M568933</guid>
      <dc:creator />
      <dc:date>2012-10-11T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405347#M568934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the unique products would be your dimension and you would have the added benefit of seeing a distribution which can be diplayed or graphed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405347#M568934</guid>
      <dc:creator />
      <dc:date>2012-10-11T15:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405348#M568935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a quick demo application based on the attached sheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405348#M568935</guid>
      <dc:creator />
      <dc:date>2012-10-11T15:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405349#M568936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I've understood the OP's request, he wants to filter the Companies to see only the ones that have ever bought a product of the selected family type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use something like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;family=&amp;gt; value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will clear the selection in family for this expression, so if you use this as expression in a chart table, and you have made a selection in field family, you will essentially address all records for your calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this will result in something the OP wants to see, it does not filter the Companies that have ever bought a product from family selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this, you need to tell QV to implicitely select those Companies, that have a relation with the selected family. Then you need to clear the selection in family, to allow one to see all products bought by those Companies.&lt;/P&gt;&lt;P&gt;You can use a implicite field value definition using the p() function for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;Company = p(), Family= &amp;gt;} [Order N°])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this in a chart with dimension Company and Product desc, you&amp;nbsp; will see only the Companies that ever bought products from the selected family, but you will see all products they bought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 17:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405349#M568936</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-11T17:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405350#M568937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for the delay. Stefan, you have understood. I tried your expression and it works. &lt;/P&gt;&lt;P&gt;Do you know which is the best way to view this kind of Analysis? Maybe a particular chart or graph or something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to ask another question, Which is the per cent version of your expression, how I can convert your expression in &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;percentage?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 09:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405350#M568937</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-12T09:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405351#M568938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I understand: you want to display a ration, but a ratio defined by what?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 09:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405351#M568938</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-12T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405352#M568939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by the total of the expression.&lt;/P&gt;&lt;P&gt;Something like, sum(Value)/sum(total(Value))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 10:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405352#M568939</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-12T10:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405353#M568940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So why not just use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;Company = p(), Family= &amp;gt;}[Order N°]) / count(total {&amp;lt;Company = p(), Family= &amp;gt;}[Order N°])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;Company = p(), Family= &amp;gt;}[Order N°]) / count(total&amp;lt;Company&amp;gt; {&amp;lt;Company = p(), Family= &amp;gt;}[Order N°])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and format the number on numbers tab as percentage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 10:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405353#M568940</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-12T10:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405354#M568941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2nd Expression works, first one, that I had tried before asking you, doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this kind of analysis is very interesting, but maybe you know something more usefull.&lt;/P&gt;&lt;P&gt;We want to cut some products, but we don't know the effects that this razionalization should has on our sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be interesting even a pivot chart? with as dimension family and inside again the families those are bought with the first family. I know.. My reasoning is complex, but I hope I understand me, again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 11:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405354#M568941</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-12T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405355#M568942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check these samples and see if they match your requirements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/162179#162179" title="http://community.qlik.com/message/162179#162179"&gt;http://community.qlik.com/message/162179#162179&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/225432#225432" title="http://community.qlik.com/message/225432#225432"&gt;http://community.qlik.com/message/225432#225432&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 11:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405355#M568942</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-12T11:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to know the mix product</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405356#M568943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan,&lt;/P&gt;&lt;P&gt;unfortunately I have the free version and I can not open the example files, nevertheless You was very very kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 11:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-know-the-mix-product/m-p/405356#M568943</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-12T11:41:42Z</dc:date>
    </item>
  </channel>
</rss>

