<?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: Scripting or Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-or-Chart/m-p/522560#M686858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to set up a table in the data that lists each Brand and their main supplier(s) (I am guessing from the above table that there could than 1?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie so something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 49px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;H2&gt;Brand&lt;/H2&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;H2&gt;Supplier&lt;/H2&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;H2&gt;Supplier_Type&lt;/H2&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; background: white; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; background: white; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;MAIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; background: white; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; background: white; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either join this to the main table or leave it floating, to be joined in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set up the table chart as you did earlier, except do a calculated dimension for supplier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension1:Brand&lt;/P&gt;&lt;P&gt;Dimension2(calculated): =if(Supplier_Type='MAIN',Supplier,'Others')&lt;/P&gt;&lt;P&gt;Expression: =sum(purchase)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will group any suppliers that are not the main one for that brand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 22:57:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-03T22:57:07Z</dc:date>
    <item>
      <title>Scripting or Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-or-Chart/m-p/522559#M686857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;We have below purchase data in Brands vs Supplier format…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="264"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;Brand&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;Supplier&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;SUM(Purchase)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;50&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;150&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;180&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;250&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;180&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;130&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;250&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;85&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="133"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;150&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;For each Brand, we have particular main (prime) supplier and rest suppliers are we using only if that Brand is not available from our major supplier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;So, I want below table…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Here Others are total for non-prime supplier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;How can I achieve this…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="49"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;Brand&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;Supplier&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;SUM(Purchase)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;150&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Others&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;230&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;250&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Others&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Others&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;120&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Others&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;180&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;130&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Others&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;335&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Others&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;230&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 17:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-or-Chart/m-p/522559#M686857</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-12-03T17:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting or Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-or-Chart/m-p/522560#M686858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to set up a table in the data that lists each Brand and their main supplier(s) (I am guessing from the above table that there could than 1?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie so something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 49px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;H2&gt;Brand&lt;/H2&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;H2&gt;Supplier&lt;/H2&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;H2&gt;Supplier_Type&lt;/H2&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; background: white; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; background: white; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;MAIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; background: white; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; background: white; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt; border-top: none;" width="11"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="15"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: 0px solid black; padding: 0 5.4pt 0 5.4pt; border-right: solid windowtext 1.0pt; border-bottom: solid windowtext 1.0pt; border-left: none; border-top: none;" width="24"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;MAIN&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either join this to the main table or leave it floating, to be joined in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set up the table chart as you did earlier, except do a calculated dimension for supplier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension1:Brand&lt;/P&gt;&lt;P&gt;Dimension2(calculated): =if(Supplier_Type='MAIN',Supplier,'Others')&lt;/P&gt;&lt;P&gt;Expression: =sum(purchase)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will group any suppliers that are not the main one for that brand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 22:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-or-Chart/m-p/522560#M686858</guid>
      <dc:creator />
      <dc:date>2013-12-03T22:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting or Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-or-Chart/m-p/522561#M686859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NB Manish, as an aside it could be easier (depending on your data model) to construct a table with every permutation of Brand and Supplier, with the Supplier name or "others" as a 3rd field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 264px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;Brand&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;STRONG style="color: #333333; font-size: 14.0pt;"&gt;Supplier&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;&lt;STRONG&gt;Supplier_Group&lt;/STRONG&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: #333333; font-size: 14.0pt;"&gt;B&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;OTHERS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;OTHERS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;OTHERS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;C&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right: 1pt solid windowtext; border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="56"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;B3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="-moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding: 0px; background: none repeat scroll 0% 0% #ffffff; border-right: 1pt solid windowtext; border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; color: #575757; text-align: center; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="75"&gt;&lt;P align="center" style="text-align: center;"&gt;A&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: center; padding: 0px; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 14.0pt; color: #333333;"&gt;A&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be easier to apply in the chart, as you can add it straight in as a dimension. The downside is that it wont account for any new suppliers that are not yet in the list. So it depends on your data a lot really!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 23:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-or-Chart/m-p/522561#M686859</guid>
      <dc:creator />
      <dc:date>2013-12-03T23:05:48Z</dc:date>
    </item>
  </channel>
</rss>

