<?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 Sales and Returns pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186348#M50469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great advice John, thank so much &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 00:59:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-15T00:59:25Z</dc:date>
    <item>
      <title>Sales and Returns pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186344#M50465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First post...hello all!&lt;/P&gt;&lt;P&gt;I'm working with two tables, sales and returns.&lt;/P&gt;&lt;P&gt;Sales table has sale date, sale tran #, and sold qty.&lt;/P&gt;&lt;P&gt;Return table has return date, sale tran #, sale date and return qty.&lt;/P&gt;&lt;P&gt;i need to create a pivot table that will show the sales (current month for example), and display if there was a return, the return date and qty.&lt;/P&gt;&lt;P&gt;Right now, i see every instance of a return, not just the one associated to that sale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 319pt; border-collapse: collapse;" width="424"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 45pt; mso-width-source: userset; mso-width-alt: 2194;" width="60" /&gt;&lt;COL style="width: 35pt; mso-width-source: userset; mso-width-alt: 1718;" width="47" /&gt;&lt;COL span="2" style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;" width="69" /&gt;&lt;COL style="width: 40pt; mso-width-source: userset; mso-width-alt: 1938;" width="53" /&gt;&lt;COL style="width: 47pt; mso-width-source: userset; mso-width-alt: 2267;" width="62" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="background-color: transparent; width: 48pt; height: 12.75pt; border: windowtext 0.5pt solid;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 45pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="60"&gt;sale date&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 35pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="47"&gt;trans #&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 52pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="69"&gt;return date&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 52pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="69"&gt;sale tran #&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 40pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="53"&gt;sale qty&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 47pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="62"&gt;return qty&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" colspan="4" height="17" style="background-color: silver; height: 12.75pt; border: windowtext 0.5pt solid;"&gt;&lt;STRONG&gt;total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: silver; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: silver; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: silver; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;item a&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" num="40330"&gt;6/1/2010&lt;/TD&gt;&lt;TD class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" str="'1900"&gt;1900&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" num="39539"&gt;4/1/2008&lt;/TD&gt;&lt;TD class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" str="'1625"&gt;1625&lt;/TD&gt;&lt;TD align="right" class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" num="39934"&gt;5/1/2009&lt;/TD&gt;&lt;TD class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" str="'1752"&gt;1752&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" num="40332"&gt;6/3/2010&lt;/TD&gt;&lt;TD class="xl23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;" str="'1900"&gt;1900&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can set analysis be used to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 03:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186344#M50465</guid>
      <dc:creator />
      <dc:date>2010-06-12T03:22:11Z</dc:date>
    </item>
    <item>
      <title>Sales and Returns pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186345#M50466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's your data model like? For this particular report you should link the sales and returns table by using the "sales tran #'.&lt;/P&gt;&lt;P&gt;Then you don't have to worry about doing set analysis or a sum(if).&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jun 2010 00:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186345#M50466</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-06-13T00:14:03Z</dc:date>
    </item>
    <item>
      <title>Sales and Returns pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186346#M50467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i don't control the data model, what if my IT counterpart is not able to link by sales tran #?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 00:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186346#M50467</guid>
      <dc:creator />
      <dc:date>2010-06-15T00:06:27Z</dc:date>
    </item>
    <item>
      <title>Sales and Returns pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186347#M50468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;scarvajal wrote:&lt;BR /&gt;i don't control the data model, what if my IT counterpart is not able to link by sales tran #?&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Well, the right thing to do is probably to link the fields in the data model. Either "trans #" should be renamed to "sale tran #" or vice versa during the load script.&lt;/P&gt;&lt;P&gt;If that isn't practical for some reason, you can link the two fields up in the expression(s). For instance:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(if("trans #"="sale tran #","sale qty"))&lt;/P&gt;&lt;P&gt;The problem is that performance will be horrible if your data model is large. It'll be fine if its a fairly small set of data, though, so it might be good enough.&lt;/P&gt;&lt;P&gt;Edit: On the other hand, if these fields aren't linked in the data model, you'll probably have an endless number of headaches, of which this is merely the first. Coming up with an ugly workaround for every single problem is really not the way to handle it. It's like saying you want to drive across the country, but want to do it without tires on the car. Technically doable, but ill-advised. You may not be the mechanic, but &lt;EM&gt;someone&lt;/EM&gt; needs to put tires on the car.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 00:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186347#M50468</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-15T00:36:39Z</dc:date>
    </item>
    <item>
      <title>Sales and Returns pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186348#M50469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great advice John, thank so much &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 00:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-and-Returns-pivot-table/m-p/186348#M50469</guid>
      <dc:creator />
      <dc:date>2010-06-15T00:59:25Z</dc:date>
    </item>
  </channel>
</rss>

