<?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 Put a calculation both in rows and columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188585#M51783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is one way to do it. Seems like it should be simple, but... no so much. The example doesn't use your fields. It's just an example I had lying around that demonstrates the technique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 05:54:55 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-12-16T05:54:55Z</dc:date>
    <item>
      <title>Put a calculation both in rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188583#M51781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to present some financial key figures in a small pivot table with a calculated field both in row and column:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;Actual Plan Variance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Revenue&lt;/P&gt;&lt;P&gt;Profit&lt;/P&gt;&lt;P&gt;Profitmargin%&lt;/P&gt;&lt;P&gt;Revenue and profit are values of a field called 'reportinglevel1),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual an plan are based on field called 'plan/actual indicator).&lt;/P&gt;&lt;P&gt;Variance is Actual - plan&lt;/P&gt;&lt;P&gt;Profitmargin% should be Profit / Revenue&lt;/P&gt;&lt;P&gt;Seems like a vary simple taks but i don't seem to be able to put calculations in both rows an columns.&lt;/P&gt;&lt;P&gt;Has anyone come across this problem and found a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 21:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188583#M51781</guid>
      <dc:creator />
      <dc:date>2009-12-15T21:33:57Z</dc:date>
    </item>
    <item>
      <title>Put a calculation both in rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188584#M51782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how this will work out but you would need to add in Revenue, Profit &amp;amp; ProfitMargin% as calculated dimensions. Then add Actual, Plan &amp;amp; Variance as expressions.&lt;/P&gt;&lt;P&gt;Try it &amp;amp; let me know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 00:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188584#M51782</guid>
      <dc:creator />
      <dc:date>2009-12-16T00:10:22Z</dc:date>
    </item>
    <item>
      <title>Put a calculation both in rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188585#M51783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is one way to do it. Seems like it should be simple, but... no so much. The example doesn't use your fields. It's just an example I had lying around that demonstrates the technique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 05:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188585#M51783</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-16T05:54:55Z</dc:date>
    </item>
    <item>
      <title>Put a calculation both in rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188586#M51784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Never used the 'pick' function before. It seems to me that the example only works if you use numbers (1,2,3..) in the value list. I f you were to use descriptive values like 'Revenue, Profit, ProfitMargin' then you should add If statements to determine the number within the value list, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 15:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188586#M51784</guid>
      <dc:creator />
      <dc:date>2009-12-16T15:39:15Z</dc:date>
    </item>
    <item>
      <title>Put a calculation both in rows and columns</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188587#M51785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can still use pick, but you have to do pick(match()). And IF statements work too. Not sure which I would prefer at this point. Pick(match()) probably runs slightly faster, and uses less code. But IF statements are probably more clear, and therefore more maintainable. I've updated the example with both approaches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 02:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-calculation-both-in-rows-and-columns/m-p/188587#M51785</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-17T02:34:48Z</dc:date>
    </item>
  </channel>
</rss>

