<?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: One expression with two different date dimensions. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-expression-with-two-different-date-dimensions/m-p/764258#M1048759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to do it in script, adding the real_date where empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, if(len(service_date)&amp;gt;0 and len(real_date)=0, service_date, real_date) as real_dateOK&lt;/P&gt;&lt;P&gt;FROM yoursource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, use the real_dateOK field in your expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 13:51:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-04T13:51:00Z</dc:date>
    <item>
      <title>One expression with two different date dimensions.</title>
      <link>https://community.qlik.com/t5/QlikView/One-expression-with-two-different-date-dimensions/m-p/764257#M1048758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently struggling doing to following calculation in my document. I have 2 different date dimensions (service_date &amp;amp; real_date). Service_date shows when the money was posted, real_date shows for what day the money posted. Real_date only appears when service_date is different to real_date. If service_date if equal to real_date, real_date remains empty. However, what I need to achieve is to add the real_date amount to the relevant service_date in my pivot table. Please see an example below. The -38 27th Apr real_date need to get added to the 320 27th Apr service_date.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70470_test.png" /&gt;&lt;/P&gt;&lt;P&gt;Is it somehow possible to do that calculation in an expression keeping the pivot table format with only visible the service_date column? Many thanks in advanced.&lt;BR /&gt; &lt;BR /&gt;Best regards &lt;BR /&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-expression-with-two-different-date-dimensions/m-p/764257#M1048758</guid>
      <dc:creator />
      <dc:date>2014-11-04T13:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: One expression with two different date dimensions.</title>
      <link>https://community.qlik.com/t5/QlikView/One-expression-with-two-different-date-dimensions/m-p/764258#M1048759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to do it in script, adding the real_date where empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, if(len(service_date)&amp;gt;0 and len(real_date)=0, service_date, real_date) as real_dateOK&lt;/P&gt;&lt;P&gt;FROM yoursource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, use the real_dateOK field in your expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-expression-with-two-different-date-dimensions/m-p/764258#M1048759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-04T13:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: One expression with two different date dimensions.</title>
      <link>https://community.qlik.com/t5/QlikView/One-expression-with-two-different-date-dimensions/m-p/764259#M1048762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't do much work with pivot_tables - next to none actually, I try to stick to barcharts and combo_charts to keep things simple.&lt;/P&gt;&lt;P&gt;I know however that you can define expressions in a chart and, regardless whether or not you display them, you can refer to them (to their output) in other expressions.&lt;/P&gt;&lt;P&gt;So you have to make sure that the column "real_date" - display it just for testing, you can hide it once you are sure about that - is always filled. Then you can do any calculation with it.&lt;/P&gt;&lt;P&gt;You can copy one field into another - that's what you can do in any record where "real_date" is not filled. Build that into an IF_construct to query whether there is already something (in which case you should copy that) - use a 3rd field to do that.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-expression-with-two-different-date-dimensions/m-p/764259#M1048762</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-04T13:55:36Z</dc:date>
    </item>
  </channel>
</rss>

