<?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 Calculate Margin with variable and fixed costs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389143#M820103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am brand new to Qlikview.&lt;/P&gt;&lt;P&gt;I've collected my data with an MySQL Database and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also started to implement the first dashboard in Qlik Cloud. But now i am struggling with the absolute margin of sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 tables:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Branches&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Employees&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Orders&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Products&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;id&lt;/TD&gt;&lt;TD colspan="1"&gt;id&lt;/TD&gt;&lt;TD&gt;id&lt;/TD&gt;&lt;TD colspan="1"&gt;id&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;energy_costs&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;salary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;branch-id&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;selling_price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;rental_costs&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;branch-id&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;buying-time&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;buying_price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;product-id&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;quantity&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;buying-time&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation of the margin works like charm with this formula (devision through 100 cuz the values saved as cent):&lt;/P&gt;&lt;P&gt;((Sum(price) - Sum(buying_price)) * Count(quantity)) / 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i am able to calculate the absolute margin including the energy costs, rental costs and salary of every employee linked to its branch? The costs and salary counting only once per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying with this formula but doesn't work - the margin is higher than the total income:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(((Sum(price) - Sum(buying_price)) * Count(quantity)) - (Sum(energy_costs) + Sum(rental_costs) - Sum(salary)) / 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Best C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Calculate Margin with variable and fixed costs</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389143#M820103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am brand new to Qlikview.&lt;/P&gt;&lt;P&gt;I've collected my data with an MySQL Database and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also started to implement the first dashboard in Qlik Cloud. But now i am struggling with the absolute margin of sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 tables:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Branches&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Employees&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Orders&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Products&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;id&lt;/TD&gt;&lt;TD colspan="1"&gt;id&lt;/TD&gt;&lt;TD&gt;id&lt;/TD&gt;&lt;TD colspan="1"&gt;id&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;energy_costs&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;salary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;branch-id&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;selling_price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;rental_costs&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;branch-id&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;buying-time&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;buying_price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;product-id&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;quantity&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;buying-time&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation of the margin works like charm with this formula (devision through 100 cuz the values saved as cent):&lt;/P&gt;&lt;P&gt;((Sum(price) - Sum(buying_price)) * Count(quantity)) / 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i am able to calculate the absolute margin including the energy costs, rental costs and salary of every employee linked to its branch? The costs and salary counting only once per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying with this formula but doesn't work - the margin is higher than the total income:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(((Sum(price) - Sum(buying_price)) * Count(quantity)) - (Sum(energy_costs) + Sum(rental_costs) - Sum(salary)) / 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Best C&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-Margin-with-variable-and-fixed-costs/m-p/1389143#M820103</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Margin with variable and fixed costs</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389144#M820104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share some sample data or a sample application to show the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389144#M820104</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-11T15:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Margin with variable and fixed costs</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389145#M820105</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 attention &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to the whole app, i think this help us most - &lt;A href="https://www.dropbox.com/s/svvxrz8y5c03t64/FOM%20BI.qvf?dl=0" title="https://www.dropbox.com/s/svvxrz8y5c03t64/FOM%20BI.qvf?dl=0"&gt;Dropbox - FOM BI.qvf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot, Sunny! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 15:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389145#M820105</guid>
      <dc:creator />
      <dc:date>2017-08-12T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Margin with variable and fixed costs</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389146#M820106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I won't be able to download from DropBox... would you be able to attach here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 11:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389146#M820106</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-14T11:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Margin with variable and fixed costs</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389147#M820107</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;i didn't see the button first. Thank you for your hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The app is now available via the Attachment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 16:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Margin-with-variable-and-fixed-costs/m-p/1389147#M820107</guid>
      <dc:creator />
      <dc:date>2017-08-14T16:42:16Z</dc:date>
    </item>
  </channel>
</rss>

