<?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 left join and dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786664#M668477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a left join in my script im joining a table with Dates and Budgets to a table with&lt;/P&gt;&lt;P&gt;Budgets and a few other dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the join i have more than one date for each date... is it because of the left join?&lt;/P&gt;&lt;P&gt;how can I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/70693_pastedImage_1.png" style="width: 620px; height: 330px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 04:56:45 GMT</pubDate>
    <dc:creator>rido1421</dc:creator>
    <dc:date>2014-11-07T04:56:45Z</dc:date>
    <item>
      <title>left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786664#M668477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a left join in my script im joining a table with Dates and Budgets to a table with&lt;/P&gt;&lt;P&gt;Budgets and a few other dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the join i have more than one date for each date... is it because of the left join?&lt;/P&gt;&lt;P&gt;how can I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/70693_pastedImage_1.png" style="width: 620px; height: 330px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 04:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786664#M668477</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-11-07T04:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786665#M668478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain the details of the tables,&lt;/P&gt;&lt;P&gt;on which field you have joined it it may be due to one to many relationship in two tables.&lt;/P&gt;&lt;P&gt;Please provide some inline table structure and data &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 04:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786665#M668478</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-11-07T04:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786666#M668479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ive noticed that even before the join I had this issue&lt;/P&gt;&lt;P&gt;When I pull dates as is i get a number, so ive converted it into a date as per below&lt;/P&gt;&lt;P&gt;but I get multiple dates... i think this is where my issue lies...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; Date as Date1,&lt;/P&gt;&lt;P&gt; Date(Num#(Date)) as Date,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/70697_pastedImage_0.png" style="width: 620px; height: 330px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 05:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786666#M668479</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-11-07T05:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786667#M668480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you have different timestamp in it&lt;/P&gt;&lt;P&gt;Try listbox with TimeStamp(Date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you to overcome this then use &lt;STRONG&gt;Date(Floor(Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 05:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786667#M668480</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-11-07T05:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786668#M668481</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;A date in Qlikview is a number, formatted to display as a date, just like Excel.The Date() function formats the number to look like a date, but does not change the underlying number. If your date has a time component, that is not removed when you use Date(), so you need to floor the dates to remove the time (the fractional component). So you need something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(Date)) As Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Frac(Date)) As Time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 05:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786668#M668481</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-11-07T05:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786669#M668482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TimeStamp(Date) this works in the listbox&lt;/P&gt;&lt;P&gt;so Date(Timestamp(Date)) should fix this?&lt;/P&gt;&lt;P&gt;but when i do this in the script it doesnt give any result...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 05:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786669#M668482</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-11-07T05:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786670#M668484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is because of wrong format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;date(floor(YourDateField),'YYYY/MM/DD') as NewDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 05:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786670#M668484</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-11-07T05:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786671#M668485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want Date alone you need to use Floor, Actually QlikView keeps the Date as numbers Where 1=24 hrs of day, so Time will be in decimal(Kind of 41950.453472222). Floor will remove the decimals.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Date(Floor(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 05:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786671#M668485</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-11-07T05:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786672#M668486</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;it's indeed the difference between displaying the same date and the underlying values being fractional numbers with the same integer part.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Another (shorter) solution to get rid of the fractional part and formatting as a date is the DayName() function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1415461861407315" jivemacro_uid="_1415461861407315"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(Date1) as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(Ceil(Rand()*1000)) as Budget1&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;Date1&lt;/P&gt;
&lt;P&gt;41913.000000&lt;/P&gt;
&lt;P&gt;41913.0000001&lt;/P&gt;
&lt;P&gt;41913.0000002&lt;/P&gt;
&lt;P&gt;41944.000000&lt;/P&gt;
&lt;P&gt;41944.0000001&lt;/P&gt;
&lt;P&gt;41944.0000002&lt;/P&gt;
&lt;P&gt;41974.000000&lt;/P&gt;
&lt;P&gt;41974.0000001&lt;/P&gt;
&lt;P&gt;41974.0000002&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="70787" alt="QlikCommunity_Thread_141193_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70787_QlikCommunity_Thread_141193_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="70788" alt="QlikCommunity_Thread_141193_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70788_QlikCommunity_Thread_141193_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2014 15:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786672#M668486</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-08T15:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786673#M668487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marco &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was my solution DayName(Date(Num#(Date))) as Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 06:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786673#M668487</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2014-11-11T06:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: left join and dates</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786674#M668489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;If this expression works for you, then maybe &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 17px;"&gt;DayName(Num#(Date)) as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 17px;"&gt;will also return correct results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 17px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 17px;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 17px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 17px;"&gt;Marco&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 07:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-and-dates/m-p/786674#M668489</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-11T07:14:24Z</dc:date>
    </item>
  </channel>
</rss>

