<?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: Filtered date not recognised as date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538518#M747382</link>
    <description>All the export dates within that month.</description>
    <pubDate>Fri, 01 Feb 2019 14:59:47 GMT</pubDate>
    <dc:creator>mattphillip</dc:creator>
    <dc:date>2019-02-01T14:59:47Z</dc:date>
    <item>
      <title>Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538401#M747376</link>
      <description>&lt;P&gt;Hoping someone can help. I'm trying to produce a pivot table which is providing sub-total for applications based on the the final export date within a field called 'Date' which is filtered by an expression. The expression succeeds in pulling out the final export date per month for a particular session and is formatted as a date. However, the sub-totals are way higher than they should be which tells me that Qlikview doesn't recognise the filtered date as having values from the Date field. When I manually select a date within the Date field, the totals then look accurate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date filter expression:&amp;nbsp;=date(aggr(max({&amp;lt;Session={'2018/19'}&amp;gt;}Date),Month),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;Sub-Total expression: =count([Applicant ID])&lt;/P&gt;&lt;P&gt;Does anyone have any idea what I might be doing wrong?&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538401#M747376</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2024-11-16T04:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538408#M747377</link>
      <description>&lt;P&gt;In your current selections, are you seeing a selection in the Month field? or are you seeing selection in both month and date field?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 12:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538408#M747377</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T12:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538430#M747378</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick reply. I don't have a month field as such, rather the expression is filtering a populated field labelled as date to pick out the last export dates for each month (rather than the last calendar date). The format for the Date field is DD/MM/YYYY.&lt;BR /&gt;&lt;BR /&gt;M</description>
      <pubDate>Fri, 01 Feb 2019 13:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538430#M747378</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T13:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538432#M747379</link>
      <description>&lt;P&gt;You don't have a month field?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 702px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5026i406BBF759A86B35A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But you have made a reference of your Month field here?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538432#M747379</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T13:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538497#M747380</link>
      <description>Sunny, my apologies. I misread your email (Trying to multi-task in the office isn't the easiest thing!). Yes, for the purposes of the expression I created a month field in the load script ( Month(Date)as Month,).&lt;BR /&gt;&lt;BR /&gt;Yes, when I click on one of the filtered dates in the pivot table, it is making a selection within both the 'Date' and 'Month' fields.</description>
      <pubDate>Fri, 01 Feb 2019 14:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538497#M747380</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538515#M747381</link>
      <description>&lt;P&gt;Make sense, does it select a single date or is it selecting all dates within the month?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538515#M747381</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T14:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538518#M747382</link>
      <description>All the export dates within that month.</description>
      <pubDate>Fri, 01 Feb 2019 14:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538518#M747382</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T14:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538528#M747384</link>
      <description>&lt;P&gt;In that case, you might have to use a set analysis within your expression to display the Count related to the Max Date only.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 15:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538528#M747384</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T15:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538542#M747386</link>
      <description>Right I've tried this with the code below but I'm still getting very high subtotals...&lt;BR /&gt;&lt;BR /&gt;=count({$&amp;lt;Date={"=MaxString(Date)"}&amp;gt;}[Applicant ID])&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Fri, 01 Feb 2019 15:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538542#M747386</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538543#M747390</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;PRE&gt;=Count({$&amp;lt;Date = {"&lt;FONT color="#FF0000"&gt;$(&lt;/FONT&gt;=MaxString(Date)&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;"}&amp;gt;} [Applicant ID])&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 15:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538543#M747390</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538546#M747391</link>
      <description>Thanks Sunny! The subtotals are now looking accurate, although there seem to be a slight side effect in that, the pivot is not only showing one date, rather than showing the last export date for each month of the preceding year. Is there a way to tweak this to retain the accurate subtotals but to allow the pivot to also display the other month's export subtotals?&lt;BR /&gt;&lt;BR /&gt;As always your advice is much appreciated.</description>
      <pubDate>Fri, 01 Feb 2019 15:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538546#M747391</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T15:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538557#M747392</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47147"&gt;@mattphillip&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;the pivot is not only showing one date, rather than showing the last export date for each month of the preceding year.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am not sure I follow this? Would you be able to elaborate on this with an example?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538557#M747392</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538564#M747393</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;No problem. See below. This is what my pivot table currently looks like. It should instead feature multiple rows (for the last export of each month). Instead its listing only a single row. This can be changed by selecting a different date(s) but still only shows a single row.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;End of Month Reports (2018/19)&lt;/TD&gt;&lt;TD&gt;Level&lt;/TD&gt;&lt;TD&gt;PG Research&lt;/TD&gt;&lt;TD&gt;PG Taught&lt;/TD&gt;&lt;TD&gt;Undergraduate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/01/2018&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;118&lt;/TD&gt;&lt;TD&gt;3323&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538564#M747393</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T16:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538567#M747394</link>
      <description>&lt;P&gt;Are you facing this issue when no selection is made? Because once a selection is made, you would only want to see a single row, right?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538567#M747394</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T16:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538568#M747395</link>
      <description>Yes when no selection has been made the table is still only showing a single row rather than all the available rows.</description>
      <pubDate>Fri, 01 Feb 2019 16:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538568#M747395</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T16:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538569#M747396</link>
      <description>&lt;P&gt;Try this expression&lt;/P&gt;&lt;PRE&gt;If(GetSelectedCount(Month) = 0,
   Count([Applicant ID]),
   Count({$&amp;lt;Date = {"$(=MaxString(Date))"}&amp;gt;} [Applicant ID])
)&lt;/PRE&gt;&lt;P&gt;So, basically we will use the beginning expression when nothing is selected and only when something is selected in Month field, we will see the new expression with set analysis.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538569#M747396</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T16:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538570#M747397</link>
      <description>Thanks Sunny I tried this but whilst it does now show multiple rows, its also showing the incorrect (very high subtotals) again. When I select more than on month it will also only display a single row.&lt;BR /&gt;&lt;BR /&gt;Sorry to be taking up so much of your time.</description>
      <pubDate>Fri, 01 Feb 2019 16:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538570#M747397</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-01T16:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538597#M747398</link>
      <description>&lt;P&gt;I don't think I understand the issue you are running into. Would you be able to share a qvw/qvf sample to show the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 16:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1538597#M747398</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-01T16:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1540843#M747399</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for the delay in getting back to you. I was out of the office for a couple of days and my PC was being replaced with a shiny new laptop upon my return so I'm catching up a bit. Let me look at where we're at and try and better identify what the remaining issue might be.&lt;/P&gt;&lt;P&gt;Thanks once again for all your help.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 11:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1540843#M747399</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-07T11:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered date not recognised as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1542448#M747400</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Right I've had a look at this again, and had another go. I've changed my approach slightly.&lt;/P&gt;&lt;P&gt;I've now went for a pivot table with one dimension (Level) and two expressions to achieve a table similar to the below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Level&lt;/TD&gt;&lt;TD&gt;UG&lt;/TD&gt;&lt;TD&gt;PGT&lt;/TD&gt;&lt;TD&gt;PGR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;End of &amp;lt;chosen month&amp;gt; (current session 2019/20)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;End of &amp;lt;chosen month&amp;gt; (previous session - 2018/19)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pivot includes two different expressions to count the applicants at the final export date of a chosen month and specified session:&lt;/P&gt;&lt;P&gt;=Count(max({$&amp;lt;Date = {"$(=&lt;STRONG&gt;vActiveSessionExp&lt;/STRONG&gt;)"}&amp;gt;} [Applicant ID]))&lt;/P&gt;&lt;P&gt;=Count(max({$&amp;lt;Date = {"$(=&lt;STRONG&gt;vOldSessionExp&lt;/STRONG&gt;)"}&amp;gt;} [Applicant ID]))&lt;/P&gt;&lt;P&gt;The variables above are populated as below to capture the the final export date for each month (not the final calendar date):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vActiveSessionExp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=date(aggr(max({$&amp;lt;Session={"$(=&lt;FONT color="#ff6600"&gt;&lt;EM&gt;vActiveSession&lt;/EM&gt;&lt;/FONT&gt;)"}&amp;gt;}Date),Month),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vOldSessionExp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=date(aggr(max({$&amp;lt;Session={"$(=&lt;FONT color="#ff6600"&gt;&lt;EM&gt;vOldSession&lt;/EM&gt;&lt;/FONT&gt;)"}&amp;gt;}Date),Month),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;These variables in turn are populated as below to format the field vales for the Session field properly:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vActiveSession&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=left(&lt;FONT color="#ff6600"&gt;vCurrentSession&lt;/FONT&gt;,4)&amp;amp;'/'&amp;amp;right(&lt;FONT color="#ff6600"&gt;vCurrentSession&lt;/FONT&gt;,2)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vOldSession&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=left(&lt;FONT color="#ff6600"&gt;vPreviousSession&lt;/FONT&gt;,4)&amp;amp;'/'&amp;amp;right(&lt;FONT color="#ff6600"&gt;vPreviousSession&lt;/FONT&gt;,2)&lt;/P&gt;&lt;P&gt;These variables in turn are populated as below to capture the most recent and the second most recent session respectively:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCurrentSession&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= Max(TOTAL KeepChar(Session, '0123456789'), 1)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vPreviousSession&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= Max(TOTAL KeepChar(Session, '0123456789'), 2)&lt;/P&gt;&lt;P&gt;Whilst I thought this might work, I'm getting an error message stating that 'Nested aggregation is not allowed'. If you have the time, would you mind taking a look to see where I've went wrong?&lt;/P&gt;&lt;P&gt;I tried the below expression in an attempt to fix it but keep getting the same message.&lt;/P&gt;&lt;P&gt;=Count(max({$&amp;lt;Date = {"$(=date(aggr(max({$&amp;lt;Session={"=left(aggr(Max(TOTAL KeepChar(Session, '0123456789'), 1),4)&amp;amp;'/'&amp;amp;right(aggr(Max(TOTAL KeepChar(Session, '0123456789'), 1),2)"}&amp;gt;}Date),Month),'DD/MM/YYYY'))"}&amp;gt;})[Applicant ID]))))&lt;/P&gt;&lt;P&gt;Appreciated.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 16:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtered-date-not-recognised-as-date/m-p/1542448#M747400</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2019-02-11T16:21:02Z</dc:date>
    </item>
  </channel>
</rss>

