<?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 Datetime SQL problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183069#M48456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I need a bit more information to say something useful about this.&lt;/P&gt;&lt;P&gt;Can you maybe upload the Qlikview Document, then we can have a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2011 18:58:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-24T18:58:50Z</dc:date>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183068#M48455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3331_sourceID:3331" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this date is not within my selection?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 18:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183068#M48455</guid>
      <dc:creator />
      <dc:date>2011-01-24T18:48:20Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183069#M48456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I need a bit more information to say something useful about this.&lt;/P&gt;&lt;P&gt;Can you maybe upload the Qlikview Document, then we can have a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 18:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183069#M48456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T18:58:50Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183070#M48457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paco&lt;/P&gt;&lt;P&gt;If I have understood your question, I suspect that the Ano and Mes fields are not linked in any way to the Posting Date. Therefore, a selection of Posting Date does not reflect in the two selectors.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183070#M48457</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-01-24T19:03:29Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183071#M48458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variables and Calendar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;BR /&gt;SET DecimalSep=',';&lt;BR /&gt;SET MoneyThousandSep='.';&lt;BR /&gt;SET MoneyDecimalSep=',';&lt;BR /&gt;SET MoneyFormat='#.##0,00 €;-#.##0,00 €';&lt;BR /&gt;SET TimeFormat='hh:mm:ss';&lt;BR /&gt;SET DateFormat='DD/MM/YYYY';&lt;BR /&gt;SET TimestampFormat='DD/MM/YYYY' hh:mm:ss[.fff];&lt;BR /&gt;SET MonthNames='Enero;Febrero;Marzo;Abril;Mayo;Junio;Julio;Agosto;Septiembre;Octubre;Noviembre;Diciembre';&lt;BR /&gt;SET DayNames='Lunes;Martes;Miercoles;Jueves;Viernes;Sábado;Domingo';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LET varMinDate = '38353';&lt;BR /&gt;LET vToday = num(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//*************** Temporary Calendar ***************&lt;BR /&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;$(varMinDate) + rowno() - 1 AS Num,&lt;BR /&gt;date($(varMinDate) + rowno() - 1) AS TempDate&lt;BR /&gt;AUTOGENERATE&lt;BR /&gt;vToday - $(varMinDate) + 1;&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;TempDate AS "Posting Date",&lt;BR /&gt;Week(TempDate) AS Semana,&lt;BR /&gt;Year(TempDate) AS Año,&lt;BR /&gt;Month(TempDate) AS Mes,&lt;BR /&gt;Day(TempDate) AS Día,&lt;BR /&gt;Weekday(TempDate) AS DíaSemana,&lt;BR /&gt;'Trim.' &amp;amp; ceil(month(TempDate )/3) AS Trimestre,&lt;BR /&gt;'Sem.' &amp;amp; ceil(month(TempDate )/6) AS Semestre,&lt;BR /&gt;Date(monthstart(TempDate), 'MMM-YYYY') AS&lt;BR /&gt;MesAño,&lt;BR /&gt;Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS SemanaAño,&lt;BR /&gt;inyeartodate(TempDate, $(vToday), 0) * -1 AS&lt;BR /&gt;CurYTDFlag,&lt;BR /&gt;inyeartodate(TempDate, $(vToday), -1) * -1 AS&lt;BR /&gt;LastYTDFlag&lt;BR /&gt;RESIDENT TempCalendar&lt;BR /&gt;ORDER BY TempDate ASC;&lt;BR /&gt;DROP TABLE TempCalendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL select&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempBL:&lt;BR /&gt;LOAD&lt;BR /&gt; ApplyMap('MAP_FilaBL',ApplyMap('MAP_GL_AccoumtBL',"G_L Account No_"),null( )) as FilaBL,&lt;BR /&gt; ApplyMap('MAP_ConceptoBL',ApplyMap('MAP_GL_AccoumtBL',"G_L Account No_"),null( )) as ConceptoBL,&lt;BR /&gt; ApplyMap('MAP_GL_AccoumtBL',"G_L Account No_",null( )) as SumatorioBL,&lt;BR /&gt; "Entry No_",&lt;BR /&gt; "G_L Account No_",&lt;BR /&gt; Date("Posting Date" ,'YYYY/MM/DD')as "Posting Date",&lt;BR /&gt; Amount;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; "Entry No_",&lt;BR /&gt; "G_L Account No_",&lt;BR /&gt; "Posting Date",&lt;BR /&gt; Amount&lt;BR /&gt;FROM fusion2009.dbo."Engel - Axil (ES)$G_L Entry";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183071#M48458</guid>
      <dc:creator />
      <dc:date>2011-01-24T19:03:48Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183072#M48459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Jonathan there is linked....&lt;/P&gt;&lt;P&gt;The problen is the time (dd/mm/yyyy 23:59:59) all of this datetime excludes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183072#M48459</guid>
      <dc:creator />
      <dc:date>2011-01-24T19:06:14Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183073#M48460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right it must have something to do with the format&lt;BR /&gt;&lt;BR /&gt;Did you try to make the format in both tables the same?&lt;/P&gt;&lt;P&gt;Also use:&lt;/P&gt;&lt;P&gt;Date("Posting Date" ,'YYYY/MM/DD')as "Posting Date",&lt;/P&gt;&lt;P&gt;In your master calendar.&lt;/P&gt;&lt;P&gt;Maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183073#M48460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T19:15:48Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183074#M48461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't work&lt;/P&gt;&lt;P&gt;Paco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183074#M48461</guid>
      <dc:creator />
      <dc:date>2011-01-24T19:21:36Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183075#M48462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paco&lt;/P&gt;&lt;P&gt;I think what is happening is that the Posting dates from the SQL load are datetime values with a time component. 31/12/2007 23:59:59 does &lt;I&gt;not&lt;/I&gt; relate to one of the (whole number) dates from the master calendar (and therefore is not related to an Ano and Mes value).&lt;/P&gt;&lt;P&gt;I think you may have expected that the date format would remove the time component. This is a common misconception. The date format changes the display representation of the date, but the internal value is not affected. To achieve that you should use the &lt;B&gt;floor()&lt;/B&gt; function in your SQL load:&lt;/P&gt;&lt;P style="font-style: italic"&gt;Date(Floor("Posting Date") ,'YYYY/MM/DD')as "Posting Date",&lt;/P&gt;&lt;P&gt;(As an aside - you have a different format in your master calendar for the posting date&lt;I&gt;.&lt;/I&gt; I don't think that this is causing your problem, but its a little inconstant and may be confusing to users).&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183075#M48462</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-01-24T19:38:02Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183076#M48463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To lose the time stamp you can use :&lt;/P&gt;&lt;P&gt;Floor()&lt;/P&gt;&lt;P&gt;That should work, I hope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183076#M48463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183077#M48464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it works, credit should go to &lt;A href="http://community.qlik.com/members/mabaeyens/default.aspx"&gt;Miguel Angel Baeyens&lt;/A&gt; . He helpt me with this one.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/34210.aspx"&gt;http://community.qlik.com/forums/t/34210.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 19:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183077#M48464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T19:42:33Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183078#M48465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Honathan and Dennis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You know how to add 1 second to a timestamp???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 09:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183078#M48465</guid>
      <dc:creator />
      <dc:date>2011-01-25T09:05:04Z</dc:date>
    </item>
    <item>
      <title>Datetime SQL problem</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183079#M48466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgetting the question.&lt;/P&gt;&lt;P&gt;I've taken a look at this link, and I found the solution.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/34210.aspx"&gt;http://community.qlik.com/forums/t/34210.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Round(Num(Date("Posting Date", 'DD/MM/YYYY'))) AS "Posting Date"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again Dennis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 09:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-SQL-problem/m-p/183079#M48466</guid>
      <dc:creator />
      <dc:date>2011-01-25T09:40:53Z</dc:date>
    </item>
  </channel>
</rss>

