<?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 my columns do not calculate with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305612#M1180346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing that is jumping out:&lt;/P&gt;&lt;P&gt;Your first dimension is Patient ID instead of Record, you need to adapt the expression accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2012 22:14:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-02-21T22:14:45Z</dc:date>
    <item>
      <title>my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305607#M1180341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get a running total between dates and the date below function does not work - suggestions? Please see attached picture&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 20:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305607#M1180341</guid>
      <dc:creator />
      <dc:date>2012-02-21T20:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305608#M1180342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these dates dimension values? You can't use column(3) or column(2) function to access them there, I believe, try using the dimension. What are your dimensions and complete expressions? Could you upload a small sample?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;If you are using the dates as dimensions, try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(DateA-below(total DateB))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you get in trouble at the column segments, maybe like&lt;/P&gt;&lt;P&gt;if(below(total Record)=Record,(DateA-below(total DateB)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 20:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305608#M1180342</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-21T20:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305609#M1180343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thanks for responding regarding dimension - I tried as dimension and got the following ﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=day(interval([Column (3)]) - below([Column (2)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error ??Error in calculated dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 21:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305609#M1180343</guid>
      <dc:creator />
      <dc:date>2012-02-21T21:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305610#M1180344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you open qvw-files or are you on personal edition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 21:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305610#M1180344</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-21T21:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305611#M1180345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for helping and responding so quickly. I am sooo frustrated. To test your equation, I exported about 6 records and loaded in new .qvw file and put in your equation and changed to my fields &lt;/P&gt;&lt;P&gt;if(below(total Record)=Record,(Admitted-below(total Discharged))) and got a good result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then went to my original file (which is very large) and did a copy and paste and the results do not come back, all I get is a -.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stumped, does not make sense. I can't really send you the file, too large. I am sending some images to see if it helps.&lt;IMG alt="dates.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/11513_dates.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305611#M1180345</guid>
      <dc:creator />
      <dc:date>2012-02-21T22:11:39Z</dc:date>
    </item>
    <item>
      <title>my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305612#M1180346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing that is jumping out:&lt;/P&gt;&lt;P&gt;Your first dimension is Patient ID instead of Record, you need to adapt the expression accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305612#M1180346</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-21T22:14:45Z</dc:date>
    </item>
    <item>
      <title>my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305613#M1180347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great catch and yes I changed but no result&lt;IMG alt="dates.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/11514_dates.jpg" width="450" /&gt; - again, sorry and thanks for the help. So frustrating when something so simple is taking so many hours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305613#M1180347</guid>
      <dc:creator />
      <dc:date>2012-02-21T22:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305614#M1180348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see, your patient IDs change in every line, I assumed that you want to calculate your difference only for the same Record / Patient ID. If a change in patient ID is nothing we need to worry about, just remove the if() clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Admitted-below(total Discharged)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use only Patient ID as dimension, then three expressions:&lt;/P&gt;&lt;P&gt;=Admitted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Discharged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Admitted-below(Discharged)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305614#M1180348</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-21T22:27:57Z</dc:date>
    </item>
    <item>
      <title>my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305615#M1180349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I need it to change according to the specific record (patient) - I am calculating how long before they come back into the hospital. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305615#M1180349</guid>
      <dc:creator />
      <dc:date>2012-02-21T22:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305616#M1180350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try to sort by Patient ID or use a pivot table which will automatically group by your dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305616#M1180350</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-21T22:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: my columns do not calculate with dates</title>
      <link>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305617#M1180351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your help!!&amp;nbsp; It finally fixed when I actually put the medical record # in the table and removed the patient ID and the calcs appeared when I changed to if(below(total MR#)=MR#,(Admitted-below(total Discharged)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 22:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/my-columns-do-not-calculate-with-dates/m-p/305617#M1180351</guid>
      <dc:creator />
      <dc:date>2012-02-21T22:48:43Z</dc:date>
    </item>
  </channel>
</rss>

