<?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 calculating formulas in crosstables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculating-formulas-in-crosstables/m-p/292808#M1181943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm a bit puzzled on a (for me as beginner) complex situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to explain it with a simple table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have a crosstable:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/10441_Capture.JPG" /&gt; &lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; overflow: hidden; width: 1px; position: absolute; top: 0px; height: 1px;"&gt;﻿&lt;/DIV&gt;&lt;P&gt;I load it in a crosstable, no problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tbl_Stocks:&lt;/EM&gt;&lt;BR /&gt;CrossTable([Product], Data, 2)&lt;BR /&gt;LOAD Country, &lt;BR /&gt;Stocktype, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;C:\model.xlsm&lt;BR /&gt;(ooxml, embedded labels, table is Totals);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will now explain Stocktype :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T is total stock&lt;/P&gt;&lt;P&gt;P is production stock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now for some graphs i would like to see what amounts are in the market M, by doing M = T - P, per Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 10:36:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-20T10:36:22Z</dc:date>
    <item>
      <title>calculating formulas in crosstables</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-formulas-in-crosstables/m-p/292808#M1181943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm a bit puzzled on a (for me as beginner) complex situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to explain it with a simple table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have a crosstable:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/10441_Capture.JPG" /&gt; &lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; overflow: hidden; width: 1px; position: absolute; top: 0px; height: 1px;"&gt;﻿&lt;/DIV&gt;&lt;P&gt;I load it in a crosstable, no problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tbl_Stocks:&lt;/EM&gt;&lt;BR /&gt;CrossTable([Product], Data, 2)&lt;BR /&gt;LOAD Country, &lt;BR /&gt;Stocktype, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;C:\model.xlsm&lt;BR /&gt;(ooxml, embedded labels, table is Totals);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will now explain Stocktype :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T is total stock&lt;/P&gt;&lt;P&gt;P is production stock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now for some graphs i would like to see what amounts are in the market M, by doing M = T - P, per Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 10:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-formulas-in-crosstables/m-p/292808#M1181943</guid>
      <dc:creator />
      <dc:date>2012-01-20T10:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculating formulas in crosstables</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-formulas-in-crosstables/m-p/292809#M1181944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try creating a straight table chart with dimension Product and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Stocktype={T}&amp;gt;} Data) - sum({&amp;lt;Stocktype={P}&amp;gt;} Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the set analysis equivalent of&lt;/P&gt;&lt;P&gt;=sum(if(Stocktype='T',Data)) - sum(if(Stocktype='P',Data))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 11:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-formulas-in-crosstables/m-p/292809#M1181944</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-20T11:06:45Z</dc:date>
    </item>
  </channel>
</rss>

