<?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 division in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-division-in-Set-Analysis/m-p/159831#M34333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin:0cm 0cm 0pt;"&gt;Sorry here is my code;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;=1-(sum({$&amp;lt;Costcategory={Invoiced, [EYP], [Milk Grants], [Other Income]}&amp;gt;} Act)/2&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;/&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum({$&amp;lt;Costcategory={Invoiced, [EYP], [Milk Grants], [Other Income]}&amp;gt;} Bud)/2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2010 13:41:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-25T13:41:06Z</dc:date>
    <item>
      <title>Calculating division in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-division-in-Set-Analysis/m-p/159830#M34332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully this will be a real easy one for somebody...&lt;/P&gt;&lt;P&gt;I am trying to calculate % variance using the following formulas;&lt;/P&gt;&lt;P&gt;(Actual - Budget) / Budget&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;1- (Actual/Budget)&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144pt; border-collapse: collapse;" width="192"&gt;&lt;COLGROUP&gt;&lt;COL span="3" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: #ece9d8;" width="64"&gt;Actual&lt;/TD&gt;&lt;TD style="background-color: transparent; width: 48pt; border: #ece9d8;" width="64"&gt;Budget&lt;/TD&gt;&lt;TD style="background-color: transparent; width: 48pt; border: #ece9d8;" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" height="20" style="background-color: transparent; height: 15pt; border: #ece9d8;"&gt;282751&lt;/TD&gt;&lt;TD align="right" style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8"&gt;287200&lt;/TD&gt;&lt;TD align="right" class="xl63" style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8"&gt;1.55%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;However when i build these as expressions in QV i do not get the result i was expecting.&lt;/P&gt;&lt;P&gt;Here is my code&lt;/P&gt;&lt;P&gt;Would appreciate somebody having a look!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 13:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-division-in-Set-Analysis/m-p/159830#M34332</guid>
      <dc:creator />
      <dc:date>2010-02-25T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Calculating division in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-division-in-Set-Analysis/m-p/159831#M34333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin:0cm 0cm 0pt;"&gt;Sorry here is my code;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;=1-(sum({$&amp;lt;Costcategory={Invoiced, [EYP], [Milk Grants], [Other Income]}&amp;gt;} Act)/2&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;/&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;sum({$&amp;lt;Costcategory={Invoiced, [EYP], [Milk Grants], [Other Income]}&amp;gt;} Bud)/2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 13:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-division-in-Set-Analysis/m-p/159831#M34333</guid>
      <dc:creator />
      <dc:date>2010-02-25T13:41:06Z</dc:date>
    </item>
    <item>
      <title>Calculating division in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-division-in-Set-Analysis/m-p/159832#M34334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;First, unfortunately your code is not posted. Anyway, you can create a new expression, having already both Actual and Budgest as labels for two expressions like&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=([Actual] - [Budget]) / [Budget]&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;This should work. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 13:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-division-in-Set-Analysis/m-p/159832#M34334</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-02-25T13:42:32Z</dc:date>
    </item>
  </channel>
</rss>

