<?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 two lines based on two fields based on two different types of dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318081#M587308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the first solution and it workst. But, as you mentioned, the performance is a problem right now.&lt;/P&gt;&lt;P&gt;So, after that I tried to make a Link table with a mastercalendar, but unfortunately I cant get it done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables from where the dates are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRANSACTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%INSERTION_ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Transdate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Other transaction fields&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PUBLICATION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%INSERTION_ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Pubdate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Other publication fields&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain me more about making a link table?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2011 19:22:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-05-23T19:22:31Z</dc:date>
    <item>
      <title>How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318078#M587305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;I've got a challenge here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have two different types of dates. The first one is transactiondate (or invoicedate) and the second one is postdate (like pubdate).&lt;/P&gt;&lt;P&gt;In QlikView I have a line chart which shows me the sum of sales. These sales are based on transactiondate and is a sum of transamount.&lt;/P&gt;&lt;P&gt;X axis = TransMonth&lt;/P&gt;&lt;P&gt;Y axis = sum of sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is to show the sum of sales forecast. This forecast can only be based on the postdate of course. &lt;/P&gt;&lt;P&gt;The problem is that I use the TransMonth on the X axis and I think I need to keep it that way, because of my sum of sales which is invoiced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to see two lines in my chart.&lt;/P&gt;&lt;P&gt;1. sum of sales based on the fields transactiondate and transamount&lt;/P&gt;&lt;P&gt;2. sum of sales based on the fields postdate and amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the X axis I would like to see 12 months.&lt;/P&gt;&lt;P&gt;On the Y axis I would like to see the sum of sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who have some great ideas on this?&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 17:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318078#M587305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-20T17:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318079#M587306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't have enough data to cause a performance problem a date island is a common solution.&amp;nbsp; Create a third set of dates, then sum(if()) to match up your real dates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dimension&amp;nbsp;&amp;nbsp;&amp;nbsp; = islanddate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;expression 1 = sum(if(transactiondate=islanddate,transamount))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;expression 2 = sum(if(postdate=islanddate,amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that does have performance problems, a more complicated approach that should render much faster is to create a linkage table linking a master date to records that have either a matching transaction date or post date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LinkageTable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;transactiondate as date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,'transaction' as datetype&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,recordID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT YourTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;CONCATENATE (LinkageTable)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;postdate as date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,'post' as datetype&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,recordID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT YourTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dimension&amp;nbsp;&amp;nbsp;&amp;nbsp; = date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;expression 1 = sum({&amp;lt;datetype={'transaction'}&amp;gt;} transamount)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;expression 2 = sum({&amp;lt;datetype={'post'}&amp;gt;} amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I got that right.&amp;nbsp; You probably won't need the set analysis part if you don't have transamounts and amounts on the same records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 00:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318079#M587306</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-21T00:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318080#M587307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I will try your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2011 05:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318080#M587307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-21T05:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318081#M587308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the first solution and it workst. But, as you mentioned, the performance is a problem right now.&lt;/P&gt;&lt;P&gt;So, after that I tried to make a Link table with a mastercalendar, but unfortunately I cant get it done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables from where the dates are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRANSACTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%INSERTION_ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Transdate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Other transaction fields&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PUBLICATION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%INSERTION_ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Pubdate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Other publication fields&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain me more about making a link table?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 19:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318081#M587308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-23T19:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318082#M587309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached a working example.&amp;nbsp; It has a bit more than you need, as it has three data tables, and two tables share an ID while the third uses a different ID.&amp;nbsp; But if you ignore OtherTable, I think it's basically your situation.&amp;nbsp; Records are linked to a single master calendar using a linkage table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 23:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318082#M587309</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-23T23:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318083#M587310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good solution. I was trying to put a simple button on your app to do a basic data macro action based on your master date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action: Select in field&lt;/P&gt;&lt;P&gt;Expression: ='&amp;lt;=' &amp;amp; date(today()-1) &amp;amp; '&amp;gt;=' &amp;amp; date(today() - 28)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it just doesn't populate my selections - Any ideas why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 07:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318083#M587310</guid>
      <dc:creator>Glenn_Renwick</dc:creator>
      <dc:date>2011-08-18T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318084#M587311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data in the example only goes up to June 30.&amp;nbsp; There's nothing to select in the range you're using.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 19:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318084#M587311</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-18T19:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318085#M587312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen your example qvw and I am a little bit confused. I have attached a modified version of your qvw application in which there is no need to create linkage table still we can achieve the desired result.&lt;/P&gt;&lt;P&gt;Please look into it and explain me whether it is correct or not?&lt;/P&gt;&lt;P&gt;After reading hencovanee post I thought that both of dates (transaction &amp;amp; publication) are present in the same table as two different fields. If they were then date island would be the perfect solution. But if it gives performance problem then what should be other solution?&lt;/P&gt;&lt;P&gt;I am asking this question because I am facing the same problem in one of my assignment where there are multiple dates are present in a table as different fields and I need to link them with master calendar table.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anosh Nathaniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 14:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318085#M587312</guid>
      <dc:creator />
      <dc:date>2012-03-01T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318086#M587313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The more complicated data model still supports everything we were able to do before we added the combined calendar, because it still has all that data.&amp;nbsp; All of that information has been preserved.&amp;nbsp; The simpler data model throws away a lot of possibly valuable information in order to link the dates together.&amp;nbsp; If we don't need the original information, then throwing it away and using the simpler model is almost certainly a better approach.&amp;nbsp; But I assumed we'd want to keep track of the fact that ID 1 in the first two tables was the same thing, and that a created date means something different than a departure date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it more clear that ID has more than one date associated with it, I've added an ArrivalDate to Table2.&amp;nbsp; To make it more clear that Table1 and Table2 should remain separate tables, I've changed Table1 to an activity table, with two activities on ID 1.&amp;nbsp; Then I created a third example chart that DOESN'T use our new linkage table and combined calendar to show that we still support the original information and the kind of charts we might want to build with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I should be clear that there's no one RIGHT data model for all purposes.&amp;nbsp; How to model your data is entirely dependent on what your data means and how you want to interact with it.&amp;nbsp; All I'm giving here is an example, one way to link dates to a common calendar while preserving all of the original information intact (and in this case, with no change to its structure either).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 18:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318086#M587313</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-03-01T18:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318087#M587314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, I introduced a bug.&amp;nbsp; Since Table1 now has multiple rows per ID, we need another field to have a complete key.&amp;nbsp; I've added a sequence field since we might have multiple activities on a single date.&amp;nbsp; Since the linkage table has to specify the full key, it now also specifies the sequence.&amp;nbsp; This creates a synthetic key.&amp;nbsp; That should be fine in this case, because I do indeed want these tables connected by two fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 20:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318087#M587314</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-03-01T20:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318088#M587315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem to resolve a loop. I have created two qvw to explain my problem. I have following entities in my database:&lt;/P&gt;&lt;P&gt;Hospital&lt;/P&gt;&lt;P&gt;Brand: Which are known as drugs.&lt;/P&gt;&lt;P&gt;TA: Therapeutic Area, One therapeutic Area can have multiple drugs but one drug have only one TA&lt;/P&gt;&lt;P&gt;Access: Users have access to limited hospitals&lt;/P&gt;&lt;P&gt;Direct Sales: Sales of a Drug (Brand) through a hospital&lt;/P&gt;&lt;P&gt;MAT: Moving anual total for a drug and a hospital&lt;/P&gt;&lt;P&gt;Donation: A hospital is given some amount of donation for a TA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in first qvw, a synthetic table is being created which i have removed in second qvw by manually creating link table between brand and hospital.&lt;/P&gt;&lt;P&gt;The only problem which I was not able to solve is the loop which is getting created between hospital, TA, Donation and Brand as I have to analyze Donation amount by Hospital and TA. Currently the chart it is giving correct result but I don't know when loosly coupled table will start giving wrong results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am able to explain my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anosh Nathaniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318088#M587315</guid>
      <dc:creator />
      <dc:date>2012-03-22T15:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318089#M587316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, first, synthetic keys are not always bad, and I sometimes have one or two in my data models.&amp;nbsp; Replacing one with your own concatenated key is, in my opinion, usually a waste of both your and the computer's time.&amp;nbsp; Yes, I'm aware that people are taught otherwise in QlikView classes, and that the reference manual specifically suggests replacing them.&amp;nbsp; For my opinion and subsequent discussion, see &lt;A _jive_internal="true" href="https://community.qlik.com/thread/10279?start=30&amp;amp;tstart=0"&gt;this thread&lt;/A&gt;.&amp;nbsp; Note that I'm linking you to a post in the middle of the thread.&amp;nbsp; If you want the whole discussion, including experts that disagree with me, I'd read that post, then go back to page 1 and start over from the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for loops or loosely-coupled data, though, I never allow them in my data models.&amp;nbsp; I can't really say what the right model for your data would be.&amp;nbsp; I'd need a better understanding of your data, and time to devote that I just don't have.&amp;nbsp; One possibility would be a central fact table concatenating, say, the four tables with the HospitalId in them and adding some sort of type field to distinguish between the types of data.&amp;nbsp; Something else may be more appropriate, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318089#M587316</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-03-22T16:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318090#M587317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have four dates, two are in one table on rest are on individual tables. I want to join all four date to a Master Calender. I tried your above example using link table, first it was complaining about the loop and second thing performance issue. I have been trying to combining two dates using below code, prformance issues.... thanks for your help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Distinct ClaimID,&lt;/P&gt;&lt;P&gt;date(FirstDateOfService, 'MM/DD/YYYY') as Date,&lt;/P&gt;&lt;P&gt;'Encounter' as DateType&lt;/P&gt;&lt;P&gt;RESIDENT Claim&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//CONCATENATE (Link)&lt;/P&gt;&lt;P&gt;//LOAD&lt;/P&gt;&lt;P&gt;//ClaimID,&lt;/P&gt;&lt;P&gt;//FirstBillingDate as Date,&lt;/P&gt;&lt;P&gt;//'Billing' as DateType&lt;/P&gt;&lt;P&gt;//RESIDENT Claim&lt;/P&gt;&lt;P&gt;//;&lt;/P&gt;&lt;P&gt;CONCATENATE (Link)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ServiceLocationExpenseID,&lt;/P&gt;&lt;P&gt;ExpenseDate as Date,&lt;/P&gt;&lt;P&gt;'Expense' as DateType&lt;/P&gt;&lt;P&gt;RESIDENT ServiceLocationExpense&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD * ,&lt;/P&gt;&lt;P&gt;date(monthstart(Date),'MMM YYYY') as Month&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2012 22:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318090#M587317</guid>
      <dc:creator />
      <dc:date>2012-03-25T22:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318091#M587318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I consulted with my friend and found a solution in which I have created Hospital-Brand-TA link table and all other table are joined through this link table. Attached is the solution qvw. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-size: 9pt; color: #1f497d;"&gt;But now the problem is if I don’t get &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;HospBrandLink&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #1f497d;"&gt; table from db I need to generate it manually so that I can create ‘Link’ table. Hospital brand relationship is present in multiple tables like Direct Sales, MAT etc… I need to take all these table into consideration and need to find all possible combination of hospital – brand ids present in db.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #1f497d; font-family: arial,helvetica,sans-serif;"&gt;Am I thinking in correct direction and Is this solution correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #1f497d; font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #1f497d; font-family: arial,helvetica,sans-serif;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #1f497d; font-family: arial,helvetica,sans-serif;"&gt;Anosh Nathaniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 07:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318091#M587318</guid>
      <dc:creator />
      <dc:date>2012-04-04T07:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318092#M587319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John or anyone how can open qvw files,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the load script? I have Qlik Sense so I can't open qvw files.. (very annoying).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 09:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318092#M587319</guid>
      <dc:creator />
      <dc:date>2015-09-17T09:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to show two lines based on two fields based on two different types of dates</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318093#M587320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem similar to Henco Van, but i have single fact table and i cant bifurcate it into two.&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;&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;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i achieve the same output as requested by Henco Van?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this goes against pricipal of QlikView, but ideally that islanddate should be able to toggle associations with TransactionDate and PostDate to calculate respective KPI!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any work around to achieve the same?&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>Wed, 30 Aug 2017 06:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-two-lines-based-on-two-fields-based-on-two-different/m-p/318093#M587320</guid>
      <dc:creator>imsushantjain</dc:creator>
      <dc:date>2017-08-30T06:32:02Z</dc:date>
    </item>
  </channel>
</rss>

