<?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 Use dimension from 2 tables?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629813#M231185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ll try to explain the problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve got 2 tables that share very common fields, but with different aggregations and Dates, but same field names. To overcome this, I´ve used Qualify...&lt;/P&gt;&lt;P&gt;To associate this tables I used Date, because there isn´t any other field that it could be used. There aren´t any Key fields or ID´s to use. So, the only way I found out to connect this tables was through Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I´m facing another problem. I need to use external data to define, what I´ll call "Grand Categories" from now. These excel source tables will define "Grand Categories" based in a field present in both tables. To retrieve this information into my tables, I used Lookup function. It worked fine, b&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ut now I need to build a pivot table that use this "Grand Category" but with expressions that use fields from both tables, what I cannot do now, because OR I use "Table_A.Grand Category", OR I use "Table_B.Grand Category"...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; How can I do this, without creating Synthetic Keys, or Circular References?? Use a "Generic" "Grand Category" as Dimension, and at the same time use expressions that use both tables A and B depending on the column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sorry if my explanation is a little bit messy, but right now I cannot send any example qvw...&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;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Bruno Silva.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 14:26:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-12T14:26:36Z</dc:date>
    <item>
      <title>Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629813#M231185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ll try to explain the problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve got 2 tables that share very common fields, but with different aggregations and Dates, but same field names. To overcome this, I´ve used Qualify...&lt;/P&gt;&lt;P&gt;To associate this tables I used Date, because there isn´t any other field that it could be used. There aren´t any Key fields or ID´s to use. So, the only way I found out to connect this tables was through Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I´m facing another problem. I need to use external data to define, what I´ll call "Grand Categories" from now. These excel source tables will define "Grand Categories" based in a field present in both tables. To retrieve this information into my tables, I used Lookup function. It worked fine, b&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ut now I need to build a pivot table that use this "Grand Category" but with expressions that use fields from both tables, what I cannot do now, because OR I use "Table_A.Grand Category", OR I use "Table_B.Grand Category"...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; How can I do this, without creating Synthetic Keys, or Circular References?? Use a "Generic" "Grand Category" as Dimension, and at the same time use expressions that use both tables A and B depending on the column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sorry if my explanation is a little bit messy, but right now I cannot send any example qvw...&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;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Bruno Silva.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 14:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629813#M231185</guid>
      <dc:creator />
      <dc:date>2014-05-12T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629814#M231186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silva, what is the business rule to define the "Grand Category" from excel. It must come from both table A &amp;amp; B or If A is null then use B table field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If A table is field Null then use B Table Field else use A table field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Join A with table B only add KEY_Field &amp;amp; B table Field. Afterthat use IF condition and derive the new temp field. After that use ApplyMap or Lookup to get the Grand Category from excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post sample data &amp;amp; ur requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629814#M231186</guid>
      <dc:creator />
      <dc:date>2014-05-12T15:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629815#M231187</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;Use your dimension like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table_A.Grand Category&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table_B.Grand Category,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table_A.Grand Category&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629815#M231187</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-05-12T15:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629816#M231188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, it doesn´t work like that. The "Grand Category" from Excel works like vLookup that is used on Excel itself. I have a field named Segment on both tables, and then the Lookup matches this field with "Grand Category" field and retrieves this information to each table. With this I´ve got Table_A.GrandCategory, and TableB.GrandCategory. The GrandCategory is Common to both tables, but I cannot associate the tables because it would create synthetic keys, or circular References. &lt;/P&gt;&lt;P&gt;The problem is that I need to use a pivot table that has columns based on metrics from table A, and other columns with metrics from table B, using "Grand Category" as Dimension . This is what I´m not beeing able to implement, because with the use of Lookup function I can indeed use "Grand Category", but only from one of the tables at a time. What I need is to used both tables "GrandCategory" at once, so that my expressions evaluate correctly. &lt;/P&gt;&lt;P&gt;I know I´m not explaining well... I´m sorry!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629816#M231188</guid>
      <dc:creator />
      <dc:date>2014-05-12T15:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629817#M231189</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;Thought it was more useful, but it ain´t. &lt;/P&gt;&lt;P&gt;This only switch between fields, this case tables... &lt;/P&gt;&lt;P&gt;And what I need is that the Dimension effectively reflects tableA and tableB simultaneously. &lt;/P&gt;&lt;P&gt;I´ve tried to concatenate the tables maintaining the Qualify statement, Unqualifying Date and GrandCategory, but got into some other issues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629817#M231189</guid>
      <dc:creator />
      <dc:date>2014-05-12T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629818#M231190</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;Then try the same expression in script.&lt;/P&gt;&lt;P&gt;Like,&lt;/P&gt;&lt;P&gt;If you are doing Left join on two tables&lt;/P&gt;&lt;P&gt;then go with resident load,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;required Field Name&lt;/P&gt;&lt;P&gt;then use above expression &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;if(isnull(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Table_A.Grand Category&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Table_B.Grand Category,&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Table_A.Grand Category&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;) as Grand_Category&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: 12px; background-color: #f6f6f6;"&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: 12px; background-color: #f6f6f6;"&gt;Resident tableName;&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: 12px; background-color: #f6f6f6;"&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: 12px; background-color: #f6f6f6;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 16:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629818#M231190</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-05-12T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629819#M231191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you exclude synthetic keys?&lt;/P&gt;&lt;P&gt;if you have 2 common dimensions (date and grand categories) and you want to analyze in qlik charts with 2 common dimensions...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another possibility would be to concat the 2 tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 17:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629819#M231191</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-12T17:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension from 2 tables??</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629820#M231192</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´m excluding Synthetic Keys because this will happen with more fields. I´ve more categories that I need to aggregate. And that will lead to several synthetic keys in the document. It´s not only this one that wories me!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m exploring the concatenation of the two tables, and evaluating the impacts, mostly on Data Quality!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 17:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-from-2-tables/m-p/629820#M231192</guid>
      <dc:creator />
      <dc:date>2014-05-12T17:18:42Z</dc:date>
    </item>
  </channel>
</rss>

