<?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: Refer to a value from another Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576069#M1110572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, the tables are not linked with each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Mar 2014 22:21:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-02T22:21:01Z</dc:date>
    <item>
      <title>Refer to a value from another Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576065#M1110568</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 am new to Qlikiview help anyone can help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have two Straight Tables with two different Dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let call the first table as Actual Settlement.&lt;/P&gt;&lt;P&gt;I use Settlement Date as the Dimension and use a variable to calculate the sum of Settlement by each month.&lt;/P&gt;&lt;P&gt;This field is the same for each Settlement Date within the same month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SettlementDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DailySettlement&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CumulativeSettlement&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalSettlementbyMonth&lt;/P&gt;&lt;P&gt;30/12/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&lt;/P&gt;&lt;P&gt;31/12/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&lt;/P&gt;&lt;P&gt;1/1/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2/1/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;3/1/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;4/1/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;31/1/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second table is called Forecast Settlement.&lt;/P&gt;&lt;P&gt;The Dimension for this table is the Reload Time which is set to be the first day of each month.&lt;/P&gt;&lt;P&gt;The ForecastSettlement is also a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AsOfDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Some other variables)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ForecastSettlement&lt;/P&gt;&lt;P&gt;1/10/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Some other variables)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90&lt;/P&gt;&lt;P&gt;1/11/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Some other variables)&amp;nbsp;&amp;nbsp;&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;1/12/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Some other variables)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&lt;/P&gt;&lt;P&gt;1/1/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Some other variables)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;1/2/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Some other variables)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is it possible to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add a new column in the second table and refer to the TotalSettlementbyMonth number from the first table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and add a new column in the first table refer to the ForecastSettlement number from the second table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 02:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576065#M1110568</guid>
      <dc:creator />
      <dc:date>2014-02-27T02:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a value from another Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576066#M1110569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baiking,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not totally clear on your request, perhaps a sample qvw would help. It sounds like you want to display data from two unlinked tables using their respective date fields. There is a way to do this using 'sum(if' formula. See attached.&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;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 17:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576066#M1110569</guid>
      <dc:creator />
      <dc:date>2014-02-27T17:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a value from another Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576067#M1110570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sample QVW would definitely help here. We don't know if the two tables are linked at all in the data model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 17:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576067#M1110570</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2014-02-27T17:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a value from another Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576068#M1110571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;I sorry that I cannot open your file because I am using a desktop version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, they are unlinked tables.&lt;/P&gt;&lt;P&gt;Some how I linked them and it seems like it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also want to know your method for unlinked tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for you to demonstrate how to do it without the qvw file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 22:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576068#M1110571</guid>
      <dc:creator />
      <dc:date>2014-03-02T22:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a value from another Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576069#M1110572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, the tables are not linked with each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 22:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576069#M1110572</guid>
      <dc:creator />
      <dc:date>2014-03-02T22:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a value from another Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576070#M1110573</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;You can create a new field in the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Actual Settlement Table with the YearMonth value of the Date value in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SettlementDate&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For it you an use MonthStart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SettlementDate&lt;/SPAN&gt;) in load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can link both tables by MonthStart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SettlementDate&lt;/SPAN&gt;) field and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AsOfDate in Forecast Table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point you have the both tables linked. &lt;/P&gt;&lt;P&gt;If you want to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;add a new column in the second table and refer to the TotalSettlementbyMonth number from the first table: you can use sum(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TotalSettlementbyMonth&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And if you want to add a new column in the first table refer to the ForecastSettlement number from the second table... here I dont understand very well the requirement, if you have a number for a one month, you dont know who distribute this value in date granularity&amp;nbsp; to show this in the first table. You need have data in date granularity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Can you upload your qvw?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Please tell me if you have questions and to answer my last question about granularity data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 23:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576070#M1110573</guid>
      <dc:creator />
      <dc:date>2014-03-02T23:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a value from another Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576071#M1110574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you discovered, naming the date field the same in both tables will cause an association and you can then use the date as a dimension and include expressions from both source tables in the one presentation table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When other fields start also associating though things start going a bit wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I always recommend is concatenating all 'event' type data into a single table, matching as many field names as possible (eg. the date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get a single Event Date you would need to rename fields on load, eg. for the first table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Events:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SettlementDate as [Event Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SettlementDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as AsOfDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then for the second table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONCATENATE(Events)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AsOfDate as [Event Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as SettlementDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AsOfDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONCATENATE statement ensures that there is only one Events table - Google for "QlikView Concatenate" for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the concatenated table then all is very straight forward.&amp;nbsp; You can have &lt;STRONG&gt;Event Date&lt;/STRONG&gt; as the dimension and have calculations based on all the other fields without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without concatenation or association things are much less efficient, but a statements like this should work, assuming that SettlementDate is the dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(DailySettlement)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if(SettlementDate = AsOfDate, ForecastSettlement, null()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, as I said this is highly inefficient (and dangerous - due to Cartesian products) and would probably fall over if you had too many rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that all makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 23:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-a-value-from-another-Straight-Table/m-p/576071#M1110574</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-03-02T23:25:12Z</dc:date>
    </item>
  </channel>
</rss>

