<?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: Adding rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383950#M1165664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe in load script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales + [Cost of Goods Sold] as [Gross Profit],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 15:10:50 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2012-09-04T15:10:50Z</dc:date>
    <item>
      <title>Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383949#M1165663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attachment.&amp;nbsp; I want to take row 1 (Sales) and add to row 2 (Cost of Goods Sold) and get a new row 3 (Gross Profit)&amp;nbsp; How can this be accomplised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383949#M1165663</guid>
      <dc:creator />
      <dc:date>2012-09-04T15:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383950#M1165664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe in load script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales + [Cost of Goods Sold] as [Gross Profit],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383950#M1165664</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2012-09-04T15:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383951#M1165665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure that would work, the sale number and COGS number is made up of many rows.&amp;nbsp; For example, each row contains a field(Title) that assigns it a value of Sales or COGS, I only need the diffenrence between the 2 in the Pivot Table Chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383951#M1165665</guid>
      <dc:creator />
      <dc:date>2012-09-04T15:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383952#M1165666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;FRXTitle, NewFRXTitle&lt;/P&gt;&lt;P&gt;Sales, Sales&lt;/P&gt;&lt;P&gt;Cost of Goods..., Cost of Goods...&lt;/P&gt;&lt;P&gt;Indirect COGS, Indirect COGS&lt;/P&gt;&lt;P&gt;SG&amp;amp;A, SG&amp;amp;A&lt;/P&gt;&lt;P&gt;Sales, Gross Profit&lt;/P&gt;&lt;P&gt;Cost of Goods...,Gross Profit&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use NewFRXTitle as a pivot dimension instead of FRXTitle.&lt;/P&gt;&lt;P&gt;In this case you will have sum of the first two rows as Gross Profit row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 08:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383952#M1165666</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-05T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383953#M1165667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AMAZING!!!! TRULY AMAZING!!!&amp;nbsp;&amp;nbsp; Thanks for your help, I don't even understand what you did, I need to learn more about LOAD * Inline, but it worked perfectly!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383953#M1165667</guid>
      <dc:creator />
      <dc:date>2012-09-05T12:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383954#M1165668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I ask one more favor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is what I have so far, I am getting the % of Sales column with this, &lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountBalance&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NewFRXTitle&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={Sales}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[CalendarYear]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountBalance&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and I am getting the previous year with this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(CalendarYear)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountBalance&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*-1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Everything works great with that.&amp;nbsp; But I am trying to get the %of Sales for the Previous Year, and it does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum &lt;IMG __jive_id="21377" class="jive-image-thumbnail jive-image" onclick="" alt="qlik2.PNG" src="https://community.qlik.com/legacyfs/online/21377_qlik2.PNG" width="450" /&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(CalendarYear)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NewFRXTitle&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={Sales}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountBalance&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383954#M1165668</guid>
      <dc:creator />
      <dc:date>2012-09-05T13:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383955#M1165669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You've used one solution and marked as right another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for expression, try correct the syntax of set analysis:&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;CalendarYear={$(=Max(CalendarYear)-1)&lt;SPAN style="color: #ff0000;"&gt;}, N&lt;/SPAN&gt;ewFRXTitle={Sales}&amp;gt;}TOTAL AccountBalance)&lt;/P&gt;&lt;P&gt;or you misstyped the expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 14:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-rows/m-p/383955#M1165669</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-05T14:54:34Z</dc:date>
    </item>
  </channel>
</rss>

