<?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: Using data from other table in Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183598#M883441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a whole other way of what I was trying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some pictures, see above. That already is the outcome of my SQL script. If necessary I could also post this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the server is a MS-SQL 2000 server. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2016 09:26:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-28T09:26:59Z</dc:date>
    <item>
      <title>Using data from other table in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183594#M883437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying some stuff here and run into a challenge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some SQL queries that working fine. As outcome I have two tables. One very short one whit only 2 rows, looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date,Amount&lt;/P&gt;&lt;P&gt;20160901,7&lt;/P&gt;&lt;P&gt;20160926,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other one is some bigger, also starting whit a Date and some other values that don't matter. The first date is the same in both tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to the amount of the lowest date from the first table in the second table at the first row in a new column. I made a new column whit an IF statement, but whit no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So I start whit&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;If (DateTable2=Min(DateTable1),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is working so far, but how do I get the value "amount" belonging to the lowest date from table 1 into table 2? In this case the number 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do this, the cell stays empty, because "amount" has 2 values. This works fine if table 1 only has one row of data (also does not need the Min Function in that case). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If (DateTable2=Min(DateTable1),amount, (other calculating's that working already) )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183594#M883437</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from other table in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183595#M883438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183595#M883438</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-27T17:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from other table in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183596#M883439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Made some pictures:&lt;/P&gt;&lt;P&gt;This is table one:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138939_Table1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And this is table two, you see the 'here' that's were is want the number from table one from the column Menge (amount) where the date is the oldest. In this case the number 20&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/138940_Table2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the formula in the 'test' column:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Formula.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/138959_Formula.jpg" style="height: 322px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 07:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183596#M883439</guid>
      <dc:creator />
      <dc:date>2016-09-28T07:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from other table in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183597#M883440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;From Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table11:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mapping&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Use mapping load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;min(amount) as&amp;nbsp;&amp;nbsp; Min_Amount&lt;/P&gt;&lt;P&gt;from Table1 group by Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Applymap('Table11', Date, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Min_Amount) as &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Min_Amount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;from &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Table2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this Min_Amount Filed now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 07:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183597#M883440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T07:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using data from other table in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183598#M883441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a whole other way of what I was trying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some pictures, see above. That already is the outcome of my SQL script. If necessary I could also post this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the server is a MS-SQL 2000 server. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 09:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-data-from-other-table-in-Pivot-table/m-p/1183598#M883441</guid>
      <dc:creator />
      <dc:date>2016-09-28T09:26:59Z</dc:date>
    </item>
  </channel>
</rss>

