<?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: How to show line column combination based on two fields based on two different types of dates in a single chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414705#M427500</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;I am not changing the base table but introducing a new table to get the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOad *,Floor(TransactionDate)&amp;amp;'-'&amp;amp;Floor(PostDate) as LinkKey inline [&lt;/P&gt;&lt;P&gt;Order ID, TransactionDate, PostDate, Sales, Forecast&lt;/P&gt;&lt;P&gt;1, 01-Aug-17, 01-Aug-17, 100, 110&lt;/P&gt;&lt;P&gt;2, 01-Aug-17, 02-Aug-17, 200, 190&lt;/P&gt;&lt;P&gt;3, 02-Aug-17, 03-Aug-17, 300, 310&lt;/P&gt;&lt;P&gt;4, 03-Aug-17, 04-Aug-17, 150, 160&lt;/P&gt;&lt;P&gt;5, 03-Aug-17, 05-Aug-17, 250, 220&lt;/P&gt;&lt;P&gt;6, 03-Aug-17, 06-Aug-17, 350, 320&lt;/P&gt;&lt;P&gt;7, 04-Aug-17, 04-Aug-17, 400, 370&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;Load Distinct Floor(TransactionDate)&amp;amp;'-'&amp;amp;Floor(PostDate) as LinkKey,&lt;/P&gt;&lt;P&gt;TransactionDate as Date,&lt;/P&gt;&lt;P&gt;'Sales' as Source&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Distinct Floor(TransactionDate)&amp;amp;'-'&amp;amp;Floor(PostDate) as LinkKey,&lt;/P&gt;&lt;P&gt;PostDate as Date,&lt;/P&gt;&lt;P&gt;'Forecast' as Source&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In chart use Date as dimension and expression as below&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1. Sales&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Source = {"Sales"}&amp;gt;}Sales)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. Forecast&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Source = {"Forecast"}&amp;gt;}Forecast)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 08:46:45 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2017-09-01T08:46:45Z</dc:date>
    <item>
      <title>How to show line column combination based on two fields based on two different types of dates in a single chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414702#M427497</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 have my fact data in this format and i can't bifurcate it into two tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="486"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Order ID&lt;/TD&gt;&lt;TD class="xl65" width="111"&gt;TransactionDate&lt;/TD&gt;&lt;TD class="xl65" width="130"&gt;PostDate&lt;/TD&gt;&lt;TD class="xl65" width="117"&gt;Sales&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Forecast&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl66"&gt;01-Aug-17&lt;/TD&gt;&lt;TD class="xl66"&gt;01-Aug-17&lt;/TD&gt;&lt;TD class="xl65"&gt;100&lt;/TD&gt;&lt;TD class="xl65"&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl66"&gt;01-Aug-17&lt;/TD&gt;&lt;TD class="xl66"&gt;02-Aug-17&lt;/TD&gt;&lt;TD class="xl65"&gt;200&lt;/TD&gt;&lt;TD class="xl65"&gt;190&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;3&lt;/TD&gt;&lt;TD class="xl66"&gt;02-Aug-17&lt;/TD&gt;&lt;TD class="xl66"&gt;03-Aug-17&lt;/TD&gt;&lt;TD class="xl65"&gt;300&lt;/TD&gt;&lt;TD class="xl65"&gt;310&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;4&lt;/TD&gt;&lt;TD class="xl66"&gt;03-Aug-17&lt;/TD&gt;&lt;TD class="xl66"&gt;04-Aug-17&lt;/TD&gt;&lt;TD class="xl65"&gt;150&lt;/TD&gt;&lt;TD class="xl65"&gt;160&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;5&lt;/TD&gt;&lt;TD class="xl66"&gt;03-Aug-17&lt;/TD&gt;&lt;TD class="xl66"&gt;05-Aug-17&lt;/TD&gt;&lt;TD class="xl65"&gt;250&lt;/TD&gt;&lt;TD class="xl65"&gt;220&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;6&lt;/TD&gt;&lt;TD class="xl66"&gt;03-Aug-17&lt;/TD&gt;&lt;TD class="xl66"&gt;06-Aug-17&lt;/TD&gt;&lt;TD class="xl65"&gt;350&lt;/TD&gt;&lt;TD class="xl65"&gt;320&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;7&lt;/TD&gt;&lt;TD class="xl66"&gt;04-Aug-17&lt;/TD&gt;&lt;TD class="xl66"&gt;04-Aug-17&lt;/TD&gt;&lt;TD class="xl65"&gt;400&lt;/TD&gt;&lt;TD class="xl65"&gt;370&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I show Sum(Sales) For TransacationDate as Column and Sum(Forecast) for PostDate as line on a single chart with common date dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e for 01-Aug-17, Sum(Sales) on TransactionDate will be 300 but Sum(Forecast) will be 110 and will be displayed on a common date dimension on x -axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a similar post on this this, but data in that case is in two different tables : &lt;A href="https://community.qlik.com/message/1334500"&gt;Re: How to show two lines based on two fields based on two different types of dates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sushant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 06:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414702#M427497</guid>
      <dc:creator>imsushantjain</dc:creator>
      <dc:date>2017-08-31T06:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to show line column combination based on two fields based on two different types of dates in a single chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414703#M427498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can change your script a little bit and then you can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Order_ID, Transaction_Date as Date, Sales as Value, 'Sales' as Source&lt;/P&gt;&lt;P&gt;From xyz;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load Order_ID, Post_Date as Date, Forecast as Value, 'Forecast' as Source&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From xyz;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then you can create a chart with Date as dimension and following 2 expression.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1. Sales&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Source = {"Sales"}&amp;gt;}Value) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. Forecast&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Source = {"Forecast"}&amp;gt;}Value) &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414703#M427498</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-08-31T14:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to show line column combination based on two fields based on two different types of dates in a single chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414704#M427499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually your solution is good but we can't implement it. We have a lot of logic and calculation for KPI's based on both the dates in the load scripting, so that will get heavily impacted and complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sushant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 05:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414704#M427499</guid>
      <dc:creator>imsushantjain</dc:creator>
      <dc:date>2017-09-01T05:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to show line column combination based on two fields based on two different types of dates in a single chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414705#M427500</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;I am not changing the base table but introducing a new table to get the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOad *,Floor(TransactionDate)&amp;amp;'-'&amp;amp;Floor(PostDate) as LinkKey inline [&lt;/P&gt;&lt;P&gt;Order ID, TransactionDate, PostDate, Sales, Forecast&lt;/P&gt;&lt;P&gt;1, 01-Aug-17, 01-Aug-17, 100, 110&lt;/P&gt;&lt;P&gt;2, 01-Aug-17, 02-Aug-17, 200, 190&lt;/P&gt;&lt;P&gt;3, 02-Aug-17, 03-Aug-17, 300, 310&lt;/P&gt;&lt;P&gt;4, 03-Aug-17, 04-Aug-17, 150, 160&lt;/P&gt;&lt;P&gt;5, 03-Aug-17, 05-Aug-17, 250, 220&lt;/P&gt;&lt;P&gt;6, 03-Aug-17, 06-Aug-17, 350, 320&lt;/P&gt;&lt;P&gt;7, 04-Aug-17, 04-Aug-17, 400, 370&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;Load Distinct Floor(TransactionDate)&amp;amp;'-'&amp;amp;Floor(PostDate) as LinkKey,&lt;/P&gt;&lt;P&gt;TransactionDate as Date,&lt;/P&gt;&lt;P&gt;'Sales' as Source&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Distinct Floor(TransactionDate)&amp;amp;'-'&amp;amp;Floor(PostDate) as LinkKey,&lt;/P&gt;&lt;P&gt;PostDate as Date,&lt;/P&gt;&lt;P&gt;'Forecast' as Source&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In chart use Date as dimension and expression as below&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1. Sales&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Source = {"Sales"}&amp;gt;}Sales)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. Forecast&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Source = {"Forecast"}&amp;gt;}Forecast)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 08:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414705#M427500</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-09-01T08:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show line column combination based on two fields based on two different types of dates in a single chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414706#M427501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is indeed a brilliant solution, thanks a lot Kaushik!. I am yet to implement it, will let you know if i face any particular issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 05:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414706#M427501</guid>
      <dc:creator>imsushantjain</dc:creator>
      <dc:date>2017-09-05T05:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show line column combination based on two fields based on two different types of dates in a single chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414707#M427502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution worked perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 12:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414707#M427502</guid>
      <dc:creator>imsushantjain</dc:creator>
      <dc:date>2017-09-11T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to show line column combination based on two fields based on two different types of dates in a single chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414708#M427503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-line-column-combination-based-on-two-fields-based-on/m-p/1414708#M427503</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-09-11T14:34:25Z</dc:date>
    </item>
  </channel>
</rss>

