<?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: Date Expression Showing Null Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321929#M409490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below expression. This may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Period.autoCalendar.Date]={"&amp;gt;=$(=Date(AddMonths(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;[Period.autoCalendar.Date]&lt;/SPAN&gt;),-6)))&amp;lt;=$(=Date(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;[Period.autoCalendar.Date]&lt;/SPAN&gt;)))"}, Year=, Month=, &lt;SPAN style="font-size: 13.3333px;"&gt;[Period.autoCalendar.Date]&lt;/SPAN&gt;=&amp;gt;}Field Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2017 20:05:50 GMT</pubDate>
    <dc:creator>md_qlikview</dc:creator>
    <dc:date>2017-07-31T20:05:50Z</dc:date>
    <item>
      <title>Date Expression Showing Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321928#M409489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've created a graph with dates along the x-axis and the expression I've used for the measure looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Period.autoCalendar.Date]={'&amp;gt;$(=AddMonths(Max([Period.autoCalendar.Date]),-6))'}&amp;gt;}(Field Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to show is the last 6 months of data. What the chart is actually doing is showing data for the last 6 months but showing all available months of data, going back to all available dates, with those months greater than 6 months in the past as blank. E.g. - showing the months in the x-axis but without any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The checkbox for including null values is not checked in the dimension is not checked so I'm thinking it must be something with the above expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 18:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321928#M409489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-31T18:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date Expression Showing Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321929#M409490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below expression. This may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Period.autoCalendar.Date]={"&amp;gt;=$(=Date(AddMonths(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;[Period.autoCalendar.Date]&lt;/SPAN&gt;),-6)))&amp;lt;=$(=Date(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;[Period.autoCalendar.Date]&lt;/SPAN&gt;)))"}, Year=, Month=, &lt;SPAN style="font-size: 13.3333px;"&gt;[Period.autoCalendar.Date]&lt;/SPAN&gt;=&amp;gt;}Field Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 20:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321929#M409490</guid>
      <dc:creator>md_qlikview</dc:creator>
      <dc:date>2017-07-31T20:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date Expression Showing Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321930#M409491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that didn't work. The only thing that changed was data for the prior months is showing in the chart rather than null values for those dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 20:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321930#M409491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-31T20:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date Expression Showing Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321931#M409492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly share sample file if possible. it will be easier to rectify exact problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321931#M409492</guid>
      <dc:creator>md_qlikview</dc:creator>
      <dc:date>2017-08-01T15:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Expression Showing Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321932#M409493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;=num(count({&amp;lt;LinkCommonDate={"&amp;gt;=$(vlast6MonthMinDate)&amp;lt;=$(vlast6MonthMaxDate)" }&amp;gt;}fieldName),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where make variables :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vlast6MonthMinDate=&lt;/SPAN&gt;floor(Date(MonthStart(&amp;nbsp; AddMonths( max(LinkCommonDate),-6)),'YYYY-MM-DD'))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vlast6MonthMaxDate&lt;/SPAN&gt;=floor(Date(MonthEnd(&amp;nbsp;&amp;nbsp; AddMonths( max(LinkCommonDate)&amp;nbsp;&amp;nbsp; ,-6)),'YYYY-MM-DD'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321932#M409493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date Expression Showing Null Values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321933#M409494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like my original formula does indeed work after playing around with the Date Dimension. All I had to do was change the Limitation to "Top 6" and then uncheck the box that says Show others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 20:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Expression-Showing-Null-Values/m-p/1321933#M409494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-02T20:11:37Z</dc:date>
    </item>
  </channel>
</rss>

