<?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: Merging two dates fields into one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963490#M330442</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;Without seeing your data model and the data how can I suggest, attach some sample data and your expected results then it would be easier to understand and provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you do this at script level it is very easier to deal in front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2015 06:45:33 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-09-03T06:45:33Z</dc:date>
    <item>
      <title>Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963486#M330438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can build the logic for below SQL query in QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select A.LeadNo,RoleName, SalesCloseddate as LeadGeneratedDate&lt;/P&gt;&lt;P&gt;from STP_LMS_LEAD A inner join STP_LMS_ROLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Union ALL &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;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Select A.LeadNo,RoleName,LeadGeneratedDate as LeadGeneratedDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from STP_LMS_LEAD A inner join STP_LMS_ROLES&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;group by &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LeadGeneratedDate,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;RoleName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note in above query there is two different dates field ( Sales_Closed_Date ) and (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LeadGeneratedDate) and both treated as &lt;SPAN style="font-size: 13.3333330154419px;"&gt;LeadGeneratedDate ...can i build this logic in Qlikview &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes then help with simplest solution ...and help would be much appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌ please comment on this need your help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarfaraz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 06:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963486#M330438</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2015-09-03T06:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963487#M330439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In QlikView you can try like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table:&lt;/P&gt;&lt;P&gt;Load A, B,&lt;STRONG&gt; Date1 as Date &lt;/STRONG&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;Load A, B, &lt;STRONG&gt;Date2 as Date &lt;/STRONG&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With all fields common the two tables will get concatenated to produce a single table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 06:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963487#M330439</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-03T06:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963488#M330440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Select A.LeadNo,RoleName,Convert(DateTime,Convert(Varchar(10),SalesCloseddate,103),103) as LeadGeneratedDate,&lt;/P&gt;&lt;P&gt;'SalesClosed' AS DataType&lt;/P&gt;&lt;P&gt;from STP_LMS_LEAD(NOLOCK) A inner join STP_LMS_ROLES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Data)&lt;/P&gt;&lt;P&gt;Select A.LeadNo,RoleName,Convert(DateTime,Convert(Varchar(10),LeadGeneratedDate,103),103) as LeadGeneratedDate,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'LeadGenerated' AS DataType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from STP_LMS_LEAD(NOLOCK) A inner join STP_LMS_ROLES&lt;/P&gt;&lt;P&gt;group by LeadGeneratedDate,RoleName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 06:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963488#M330440</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-09-03T06:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963489#M330441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibilities to do this on chart level as my table contains much more fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarfaraz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 06:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963489#M330441</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2015-09-03T06:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963490#M330442</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;Without seeing your data model and the data how can I suggest, attach some sample data and your expected results then it would be easier to understand and provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you do this at script level it is very easier to deal in front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 06:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963490#M330442</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-09-03T06:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963491#M330443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds to me as if Sales_Closed_Date and LeadGeneratedDate are two very different things, and that they should &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/SPAN&gt; be merged into one field. But you can still solve the problem by creating a canonical date in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2730"&gt;Why You sometimes should Load a Master Table several times&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 07:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963491#M330443</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-03T07:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963492#M330444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you keep any example here for my understanding related with canonical date based on below script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;RoleName,&lt;/P&gt;&lt;P&gt;status_id,&lt;/P&gt;&lt;P&gt;LeadGeneratedDate,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LeadGeneratedDate&amp;nbsp; as Main_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sales_Closed_date,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[\\10.62.211.141\hdfc_qlikview\DATA\RAW_QVD\IDST_LMS_LEAD.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate (Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;RoleName,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;status_id,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LeadGeneratedDate,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sales_Closed_date as Main_Date,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sales_Closed_date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;[\\10.62.211.141\hdfc_qlikview\DATA\RAW_QVD\IDST_LMS_LEAD.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sarfaraz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 07:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963492#M330444</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2015-09-03T07:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two dates fields into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963493#M330445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically you are creating a canonical date in your Main_Date, but you duplicate data by loading the table twice. This will become a problem if you do a count or Sum on a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you could do the following:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; RecNo() as PrimaryKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; Status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; RoleName,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; status_id,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; LeadGeneratedDate,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;Sales_Closed_date&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; FROM ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;Bridge:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Load &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;PrimaryKey, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LeadGeneratedDate as Date, 'Generated' as Type Resident Data;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px;"&gt;Load &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;PrimaryKey, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sales_Closed_date &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as Date, 'Closed' as Type Resident Data;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 09:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-dates-fields-into-one/m-p/963493#M330445</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-03T09:02:34Z</dc:date>
    </item>
  </channel>
</rss>

