<?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 Adding Datenum to calendar invalidates all formulas? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365150#M460756</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 had a calendar in my QV document that was structured :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month_no_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week_no_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; monthname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calendar_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quarter&lt;/P&gt;&lt;P&gt;201012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201052&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30/12/2010 00:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 52&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the formula &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;nbsp; =sum({$&amp;lt;[calendar_date]={"$(=Only([calendar_date]))"}&amp;gt;} [gross] )&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;worked to give the sales on the selected day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;&amp;nbsp;&amp;nbsp; Floor(calandar_date) tp my load script which added:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateNum&lt;/P&gt;&lt;P&gt; 40907&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the calendar, and now the above formula won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why - does anyone know why this is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2017 15:25:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-07T15:25:16Z</dc:date>
    <item>
      <title>Adding Datenum to calendar invalidates all formulas?</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365150#M460756</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 had a calendar in my QV document that was structured :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month_no_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week_no_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; monthname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calendar_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quarter&lt;/P&gt;&lt;P&gt;201012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201052&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30/12/2010 00:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 52&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the formula &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;nbsp; =sum({$&amp;lt;[calendar_date]={"$(=Only([calendar_date]))"}&amp;gt;} [gross] )&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;worked to give the sales on the selected day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;&amp;nbsp;&amp;nbsp; Floor(calandar_date) tp my load script which added:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateNum&lt;/P&gt;&lt;P&gt; 40907&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the calendar, and now the above formula won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why - does anyone know why this is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 15:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365150#M460756</guid>
      <dc:creator />
      <dc:date>2017-04-07T15:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datenum to calendar invalidates all formulas?</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365151#M460757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, The format is different that's why it won't work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would you please share the app &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 15:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365151#M460757</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-04-07T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datenum to calendar invalidates all formulas?</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365152#M460758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Avinash, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calendar is below.&lt;/P&gt;&lt;P&gt;I read here &lt;A href="http://www.qlikviewaddict.com/2012/07/dates-in-qlikview-part-1.html" title="http://www.qlikviewaddict.com/2012/07/dates-in-qlikview-part-1.html"&gt;QlikView Addict: Dates in QlikView - Part 1&lt;/A&gt; that QlikView will use the numberic value first, in this case the dateNum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the formula to this: &lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;year=, month=, quarter=, week=, calendar_date=, month_no_id=, day=,week_no_id=,&amp;nbsp; dateNum={"&amp;gt;=$(=Num(WeekStart(Max(dateNum))))&amp;lt;=$(=Max(dateNum))"}&amp;gt;} gross_sales)&lt;/P&gt;&lt;P&gt;but it will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikview_calendar.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159475_qlikview_calendar.png" style="height: 221px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365152#M460758</guid>
      <dc:creator />
      <dc:date>2017-04-07T16:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datenum to calendar invalidates all formulas?</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365153#M460759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly , If you just want to show data for selected day you don't event need set analysis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next thing is you are trying to compare a timestamp with an Integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You either compare date with date or an integer with integer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365153#M460759</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-04-07T16:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datenum to calendar invalidates all formulas?</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365154#M460760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to encapsulate the number in date () function to tell qlikview that the number is a date and then you use weekstart () on the date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;year=, month=, quarter=, week=, calendar_date=, month_no_id=, day=,week_no_id=,&amp;nbsp; dateNum={"&amp;gt;=$(=Num(WeekStart(date (Max(dateNum)))))&amp;lt;=$(=Max(dateNum))"}&amp;gt;} gross_sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365154#M460760</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-04-07T16:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datenum to calendar invalidates all formulas?</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365155#M460761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Vineeth, That is very clear. I understand now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 07:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365155#M460761</guid>
      <dc:creator />
      <dc:date>2017-04-10T07:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Datenum to calendar invalidates all formulas?</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365156#M460762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Vineeth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 07:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Datenum-to-calendar-invalidates-all-formulas/m-p/1365156#M460762</guid>
      <dc:creator />
      <dc:date>2017-04-10T07:17:33Z</dc:date>
    </item>
  </channel>
</rss>

