<?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: Filtering on a chart which shows most items are frequently bought together in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504436#M103765</link>
    <description>&lt;P&gt;You may try it only with a calculated UI dimension like:&lt;/P&gt;
&lt;P&gt;aggr(concat(Item, ' + '), t.id)&lt;/P&gt;
&lt;P&gt;and as expression:&lt;/P&gt;
&lt;P&gt;count(t.id)&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 15:32:11 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2025-02-04T15:32:11Z</dc:date>
    <item>
      <title>Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504429#M103764</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to make a barchart to show which 2, 3 or 4 items are most frequently bought together.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My sales orders are stored in the table ps2_trans, the sales orders rows in ps2_rows where I have item_id and trans_id (id of the sales order).&lt;/P&gt;
&lt;P&gt;This is my load script&amp;nbsp;&lt;BR /&gt;Select&lt;BR /&gt;t.id AS trans_id,&lt;BR /&gt;r.id AS row_id,&lt;BR /&gt;GROUP_CONCAT(r.item_id ORDER BY r.item_id SEPARATOR ' == ') AS concat_item_ids,&lt;BR /&gt;GROUP_CONCAT(i.nm-&amp;gt;&amp;gt;"$.bg" ORDER BY r.item_id SEPARATOR '; ') AS concat_items, &lt;BR /&gt;COUNT(r.id) AS rows_cnt,&lt;BR /&gt;r.item_id as item_id&lt;BR /&gt;FROM&lt;BR /&gt;ps2_trans t,&lt;BR /&gt;ps2_rows r,&lt;BR /&gt;ps2_items i&lt;BR /&gt;WHERE&lt;BR /&gt;t.id=r.trans_id AND&lt;BR /&gt;r.item_id=i.id&lt;BR /&gt;GROUP BY&lt;BR /&gt;t.id &lt;BR /&gt;HAVING&lt;BR /&gt;rows_cnt &amp;gt; 1;&lt;/P&gt;
&lt;P&gt;this is my dimension:&amp;nbsp;=IF(LEN(concat_items) - LEN(REPLACE(concat_items, ';', '')) = 1(2 or 3), concat_items)&lt;BR /&gt;this is the measure:&amp;nbsp;COUNT(trans_id)&lt;/P&gt;
&lt;P&gt;since i am using group by t.id in my query therefore i cannot apply any filters on my bar chart (brand, category, item)&amp;nbsp;&lt;BR /&gt;can anybody help with a more intelligent way to solve this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 14:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504429#M103764</guid>
      <dc:creator>gmuradov</dc:creator>
      <dc:date>2025-02-04T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504436#M103765</link>
      <description>&lt;P&gt;You may try it only with a calculated UI dimension like:&lt;/P&gt;
&lt;P&gt;aggr(concat(Item, ' + '), t.id)&lt;/P&gt;
&lt;P&gt;and as expression:&lt;/P&gt;
&lt;P&gt;count(t.id)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504436#M103765</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-02-04T15:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504520#M103787</link>
      <description>&lt;P&gt;unfortunately this doesn't work&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 06:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504520#M103787</guid>
      <dc:creator>gmuradov</dc:creator>
      <dc:date>2025-02-05T06:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504526#M103788</link>
      <description>&lt;P&gt;What happens and in which way is it not like your expectation?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 07:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504526#M103788</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-02-05T07:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504544#M103791</link>
      <description>&lt;DIV&gt;Well it just didnt give any results.&lt;/DIV&gt;
&lt;DIV&gt;Just to be clear what I am trying to achieve is this:&lt;/DIV&gt;
&lt;DIV&gt;Ex: I have 6 sales orders:&lt;/DIV&gt;
&lt;DIV&gt;SO1&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 apple&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 pear&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 orange&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;SO2&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 apple&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 orange&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;SO3&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 apple&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 orange&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 banana&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;SO4&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 apple&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 pear&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;SO5&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 pear&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 banana&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;SO6&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 apple&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 orange&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 banana&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; - 1 pineapple&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The expected result is:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Which 2 items are bought most frequently together:&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 1 - apple, orange - 4 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 2 - apple, pear - 2 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 3 - orange, banana - 2 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 3 - apple, banana - 2 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; etc.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Which 3 items are bought most frequently together:&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 1 - apple, orange, banana - 2 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 2 - apple, pear, orange - 1 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 3 - apple, pineapple, banana - 1 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 4 - pineapple, banana, orange - 1 times bought together&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504544#M103791</guid>
      <dc:creator>gmuradov</dc:creator>
      <dc:date>2025-02-05T08:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504563#M103795</link>
      <description>&lt;P&gt;My suggestion takes always all items from an order and not 2 or 3 or n ones in any combination which is much more complex. IMO my approach isn't not bad for the needed efforts and it provides already some insights.&lt;/P&gt;
&lt;P&gt;I assume that your requirement will need n cartesian loop-logic - each item against each other item from an order to be able to apply such count-approach. Only aggregations regardless if in script or UI won't be enough.&lt;/P&gt;
&lt;P&gt;If I had this task I would use Excel with this 6 orders to develop a working logic. If it worked I would extend it to n more orders as well as to a few dependencies / context-parts - to prove the working and to get an imagination to the needed efforts and performance-impact by transferring the logic into the script and/or the UI. I think it won't be trivial ...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 09:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504563#M103795</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-02-05T09:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504603#M103806</link>
      <description>&lt;P&gt;sample data pls?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 11:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504603#M103806</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2025-02-05T11:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504730#M103828</link>
      <description>&lt;P&gt;I got this, but on my app the data will come form a db&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 07:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504730#M103828</guid>
      <dc:creator>gmuradov</dc:creator>
      <dc:date>2025-02-06T07:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504805#M103838</link>
      <description>&lt;P&gt;The source itself isn't important.&lt;/P&gt;
&lt;P&gt;It looked that there are a lot of items - therefore I suggest to consider to apply the logic against an upper categorization of the items and/or to restrict the bought together views on certain categories - because otherwise the cartesian data-set might become quite (too) large. In each case it would prove if the logic itself is working and provides the wanted insights.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504805#M103838</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-02-06T13:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504809#M103839</link>
      <description>&lt;P&gt;what I uploaded is like a 0.05% of the total data&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504809#M103839</guid>
      <dc:creator>gmuradov</dc:creator>
      <dc:date>2025-02-06T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504820#M103842</link>
      <description>&lt;P&gt;It will depend on the variance of working logic in dependency to further requirements which way would be most suitable in regard to the size of the data-set. I assume that incremental approaches are possible and then the overall size has not so much impact.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 14:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2504820#M103842</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-02-06T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2505641#M103987</link>
      <description>&lt;P&gt;So whats the expected output from this dataa?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 17:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2505641#M103987</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2025-02-12T17:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on a chart which shows most items are frequently bought together</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2506550#M104211</link>
      <description>&lt;P&gt;the expected output is a barchart where the dimensions are the item combinations and the measure how many times are bought together&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 09:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-on-a-chart-which-shows-most-items-are-frequently/m-p/2506550#M104211</guid>
      <dc:creator>gmuradov</dc:creator>
      <dc:date>2025-02-19T09:21:31Z</dc:date>
    </item>
  </channel>
</rss>

