<?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: Calculated dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517324#M36885</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Maybe not, but removing it does not change the result&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 11:56:19 GMT</pubDate>
    <dc:creator>stekol61</dc:creator>
    <dc:date>2018-12-06T11:56:19Z</dc:date>
    <item>
      <title>Calculated dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517275#M36869</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a table with all needed dimension and three Cost calculation measures (first screenshot).&lt;BR /&gt;The calculation for 'Total Cost' is something like this:&lt;BR /&gt;If (Actual_cost)&amp;gt;0 then&lt;BR /&gt;Cost = Actual cost&lt;BR /&gt;else&lt;BR /&gt;Cost = Est cost)&lt;/P&gt;&lt;P&gt;When I use the same calculation in a table without any dimension the result is different and not correct (see Total Cost) (second screenshot).&lt;/P&gt;&lt;P&gt;The calculation I used for Total cost is:&lt;/P&gt;&lt;P&gt;if (Sum([Total cost])&amp;gt;0, Sum([Total cost]),&lt;BR /&gt;(If (wor_AssignmentProfile ='Eltel - FS - SE - B2B',Sum([Eltel SWE]),&lt;BR /&gt;If (wor_AssignmentProfile ='Eltel - FS - FIN - B2B',Sum([Eltel FI]),&lt;BR /&gt;If (wor_AssignmentProfile ='Eltel - FS - LT - B2B',Sum([Eltel LI]),&lt;BR /&gt;If (wor_AssignmentProfile ='Boftel - FS - EE - B2B',Sum([Boftel]),&lt;BR /&gt;If (wor_AssignmentProfile ='Empower - FS - FI - B2B',Sum([Empower]),&lt;BR /&gt;If (wor_AssignmentProfile ='Ericsson - FS - SE - B2B',Sum([Transtema]),&lt;BR /&gt;If (wor_AssignmentProfile ='Reijlers - FS - NO - B2B',Sum([OneCo]),)))))))))&lt;/P&gt;&lt;P&gt;How can this be solved?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dim1.PNG" style="width: 339px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1704iB89F5FF6EB1BE633/image-dimensions/339x181?v=v2" width="339" height="181" role="button" title="Dim1.PNG" alt="Dim1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dim2.PNG" style="width: 339px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1705i1239AD8840B5A4B9/image-dimensions/339x59?v=v2" width="339" height="59" role="button" title="Dim2.PNG" alt="Dim2.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 10:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517275#M36869</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2018-12-06T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517283#M36871</link>
      <description>&lt;P&gt;Should&amp;nbsp;that last comma (,) at the end of the formula (just before the multiple brackets )))))))) be there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 11:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517283#M36871</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2018-12-06T11:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517324#M36885</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Maybe not, but removing it does not change the result&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 11:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517324#M36885</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2018-12-06T11:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517367#M36887</link>
      <description>&lt;P&gt;What all dimensions do you have here? You can try something like this&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;Sum(Aggr(&lt;/FONT&gt;

If(Sum([Total cost]) &amp;gt; 0, Sum([Total cost]),
(If(wor_AssignmentProfile ='Eltel - FS - SE - B2B',Sum([Eltel SWE]),
If(wor_AssignmentProfile ='Eltel - FS - FIN - B2B',Sum([Eltel FI]),
If(wor_AssignmentProfile ='Eltel - FS - LT - B2B',Sum([Eltel LI]),
If(wor_AssignmentProfile ='Boftel - FS - EE - B2B',Sum([Boftel]),
If(wor_AssignmentProfile ='Empower - FS - FI - B2B',Sum([Empower]),
If(wor_AssignmentProfile ='Ericsson - FS - SE - B2B',Sum([Transtema]),
If(wor_AssignmentProfile ='Reijlers - FS - NO - B2B',Sum([OneCo]),)))))))))

&lt;FONT color="#FF0000"&gt;, ChartDimensionsFromYourFirstImageHere))&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-dimension/m-p/1517367#M36887</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-06T12:47:59Z</dc:date>
    </item>
  </channel>
</rss>

