<?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 based on two different measures in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculating-based-on-two-different-measures/m-p/274262#M102583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have this pivot chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 dimensions:&lt;/P&gt;&lt;P&gt;1 expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(dimension1 = 'first',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SUM({&amp;lt;base = {actual}&amp;gt;} Value1),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; 'XXXXXX')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the XXXXX i want a different calculation .. XXXXXX should be the SUM of Value2. The problem with Value2 is that is not on a period level, but on a period YTD level. This while Value1 is on period level. So, i should convert this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a seperate chart, i'm using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if(right(period,2)&amp;lt;&amp;gt;'01',Sum(Value2)-(above(Sum(Value2))),Sum(Value2))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give me the correct values .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i dont know how i can combine both. copy/past doesnt work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 16:46:40 GMT</pubDate>
    <dc:creator>amien</dc:creator>
    <dc:date>2011-06-08T16:46:40Z</dc:date>
    <item>
      <title>calculating based on two different measures</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-based-on-two-different-measures/m-p/274262#M102583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have this pivot chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 dimensions:&lt;/P&gt;&lt;P&gt;1 expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(dimension1 = 'first',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SUM({&amp;lt;base = {actual}&amp;gt;} Value1),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; 'XXXXXX')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the XXXXX i want a different calculation .. XXXXXX should be the SUM of Value2. The problem with Value2 is that is not on a period level, but on a period YTD level. This while Value1 is on period level. So, i should convert this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a seperate chart, i'm using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if(right(period,2)&amp;lt;&amp;gt;'01',Sum(Value2)-(above(Sum(Value2))),Sum(Value2))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give me the correct values .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i dont know how i can combine both. copy/past doesnt work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 16:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-based-on-two-different-measures/m-p/274262#M102583</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-06-08T16:46:40Z</dc:date>
    </item>
  </channel>
</rss>

