<?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: Calculate contribution margin in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189418#M884935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny, &lt;/P&gt;&lt;P&gt;I tried your expression, but it didn't work&lt;/P&gt;&lt;P&gt;but:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if([cost type]='sales', [measure]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;works just fine!&lt;/P&gt;&lt;P&gt;Don't know if i had a typo in your expression but it helped me with the if expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2016 06:01:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-26T06:01:04Z</dc:date>
    <item>
      <title>Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189413#M884930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Qlik Community, &lt;/P&gt;&lt;P&gt;I'm very new to qlikview so I don't know whether my request is simple or not. &lt;/P&gt;&lt;P&gt;In my fact table I got a column named "account". Like account 810222. In a dimension table I have defined which account belongs to which cost type like account 810222 is "sales" and account 561991 is "cost of material".&lt;/P&gt;&lt;P&gt;Now I want to calculate the contribution margin of each order. But the only expression I can create is sum(account).&lt;/P&gt;&lt;P&gt;Is it possible to manipulate the fact table, so I'm able to calculate&lt;/P&gt;&lt;P&gt;sum(sales)&lt;/P&gt;&lt;P&gt;sum(cost of sales) etc.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any kind of help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukas &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189413#M884930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189414#M884931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you wanting to do this? Front end, back end? What type of chart you have? and dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 16:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189414#M884931</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T16:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189415#M884932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;thanks for your response. I think the front end solution would be better. The fact table will be loaded from sap &lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;directly&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;after the basic structure is done. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If it is possible I would prefer a simple table with the cost types in the rows and for example different customers as columns:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;./. construction costs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;./. material costs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=contribution margin &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;As I've said, the fact table contains different accounts which are defined in another table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;acc. 12345 to 12499 --&amp;gt; sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;acc. 23456 to 23499 --&amp;gt; constuction costs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Only thing I can calculate is sum(account) with the type of costs as a dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="example.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138243_example.png" style="height: 195px; width: 620px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So if it is possible, I want to calculate sum(construction costs) etc. Turn it into a pivot or s.th. else and calculate the contribution margin. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Again, thank you in advance for your help and sorry for my bad english &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 05:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189415#M884932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T05:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189416#M884933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this wording is better &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I got the dimension "cost type" in the fact table. in this column there are accounts listet.&lt;/P&gt;&lt;P&gt;%cost type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; measure&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.000 €&lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.000€&lt;/P&gt;&lt;P&gt;1236&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.000€&lt;/P&gt;&lt;P&gt;2345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -700€&lt;/P&gt;&lt;P&gt;2346&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -500€&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In another table, I have defined which account belongs to which cost type&lt;/P&gt;&lt;P&gt;%cost type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost type&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales&lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales&lt;/P&gt;&lt;P&gt;1236&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales&lt;/P&gt;&lt;P&gt;2345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost of material&lt;/P&gt;&lt;P&gt;2346&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost of material&lt;/P&gt;&lt;P&gt;I want to calculate sum(sales) and not sum(1234)+sum(1235)+sum(1236) etc. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 08:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189416#M884933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189417#M884934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sales&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cost type&lt;/SPAN&gt;] = {'sales'}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;measure)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;cost of material&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cost type&lt;/SPAN&gt;] = {'&lt;SPAN style="font-size: 13.3333px;"&gt;cost of material&lt;/SPAN&gt;'}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;measure)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 16:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189417#M884934</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-22T16:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189418#M884935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny, &lt;/P&gt;&lt;P&gt;I tried your expression, but it didn't work&lt;/P&gt;&lt;P&gt;but:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if([cost type]='sales', [measure]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;works just fine!&lt;/P&gt;&lt;P&gt;Don't know if i had a typo in your expression but it helped me with the if expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 06:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189418#M884935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-26T06:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189419#M884936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel that it should have worked. Don't see a reason why it won't. Is cost type and measure coming from different tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189419#M884936</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-26T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189420#M884937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the cost types are defined in another table than the measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fact table:&lt;/P&gt;&lt;P&gt;%cost type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; measure&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15€&lt;/P&gt;&lt;P&gt;12456&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10€&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other table:&lt;/P&gt;&lt;P&gt;%cost type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost type&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales&lt;/P&gt;&lt;P&gt;12456&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost of material&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 20:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189420#M884937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-26T20:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189421#M884938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what might be causing this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189421#M884938</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-27T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate contribution margin</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189422#M884939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny's suggestion using set analysis should work just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To simplify your situation and omit one hop, you could embed the %cost type-&amp;gt;cost type mapping table in your facts table as an additional dimension field. Load the "other table" as a mapping table with &lt;SPAN style="font-family: 'courier new', courier;"&gt;%cost type&lt;/SPAN&gt; as index and &lt;SPAN style="font-family: 'courier new', courier;"&gt;cost type&lt;/SPAN&gt; as mapping value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afterwards, you can load your facts as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD [%cost type],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('other table', [%cost type], Null()) AS [cost type],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; measure,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM ...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which simplifies your data model. On condition that every account only belongs to a single cost type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-contribution-margin/m-p/1189422#M884939</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-09-27T19:05:47Z</dc:date>
    </item>
  </channel>
</rss>

