<?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 inner join in for each loop? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228045#M80110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, - it would be easier to troubleshoot if you posted an example...&lt;/P&gt;&lt;P&gt;Meantime, I can only continue guessing after everybody else... I think the root of the problem is in the syntax of " FOR EACH ... IN " and in the nature of your "list of currencies" that you called "c". What exactly is "C"? Is it a field? A variable holding the list?&lt;/P&gt;&lt;P&gt;If you examine a help section describing the syntax of the "FOR" loop, you'll find that you can use a literal, or an expression, or an explicit list of values - but not a field, for example. Try digging there, and you'll likely find your problem.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2009 01:37:21 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-11-03T01:37:21Z</dc:date>
    <item>
      <title>inner join in for each loop?</title>
      <link>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228041#M80106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I want to do an inner join inside a for each loop but keep getting errors. I have tried a lot of variations and all statemetns works by themselves. If I har code the join statements they work fine. This is my code:&lt;/P&gt;&lt;P&gt;for each r in c&lt;BR /&gt;inner join (CurrencyRates)&lt;BR /&gt;load distinct YearMonth, CurrencyRate as $(r) resident CurrencyTMP where [To Currency] = '$(r)';&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;c is a list of Currency codes. What I want is a table where each currency rate is in one column.&lt;/P&gt;&lt;P&gt;Is ther something wrong with my code or is it not possible to have a inner join statement inside an for..each loop?&lt;/P&gt;&lt;P&gt;Thanks for you help!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 22:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228041#M80106</guid>
      <dc:creator />
      <dc:date>2009-10-29T22:17:20Z</dc:date>
    </item>
    <item>
      <title>inner join in for each loop?</title>
      <link>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228042#M80107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting single quotes around variable r. Like '$(r)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each r in c&lt;BR /&gt;inner join (CurrencyRates)&lt;BR /&gt;load distinct YearMonth, CurrencyRate as '$(r)' resident CurrencyTMP where [To Currency] = '$(r)';&lt;BR /&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2009 07:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228042#M80107</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-11-01T07:28:55Z</dc:date>
    </item>
    <item>
      <title>inner join in for each loop?</title>
      <link>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228043#M80108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but I still get error but now a new error... This is the error I get:&lt;/P&gt;&lt;P&gt;Blank field name not allowed&lt;BR /&gt;inner join (CurrencyRates)&lt;BR /&gt;load distinct YearMonth, CurrencyRate as '' resident CurrencyTMP where [To Currency] = ''&lt;/P&gt;&lt;P&gt;I have loaded tha data inline instead for now. I'll try and go back to this later.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 21:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228043#M80108</guid>
      <dc:creator />
      <dc:date>2009-11-02T21:55:45Z</dc:date>
    </item>
    <item>
      <title>inner join in for each loop?</title>
      <link>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228044#M80109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this a place where the evaluate function would be helpful? Maybe wrap the whole statement in evaluate? Or just the where?&lt;/P&gt;&lt;P&gt;(Sorry, I don't for sure, just guessing)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 01:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228044#M80109</guid>
      <dc:creator />
      <dc:date>2009-11-03T01:27:25Z</dc:date>
    </item>
    <item>
      <title>inner join in for each loop?</title>
      <link>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228045#M80110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, - it would be easier to troubleshoot if you posted an example...&lt;/P&gt;&lt;P&gt;Meantime, I can only continue guessing after everybody else... I think the root of the problem is in the syntax of " FOR EACH ... IN " and in the nature of your "list of currencies" that you called "c". What exactly is "C"? Is it a field? A variable holding the list?&lt;/P&gt;&lt;P&gt;If you examine a help section describing the syntax of the "FOR" loop, you'll find that you can use a literal, or an expression, or an explicit list of values - but not a field, for example. Try digging there, and you'll likely find your problem.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 01:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228045#M80110</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-11-03T01:37:21Z</dc:date>
    </item>
    <item>
      <title>inner join in for each loop?</title>
      <link>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228046#M80111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why does the FOR loop not permit you to use a field?&lt;/P&gt;&lt;P&gt;What is the simplest way to evaluate a field? \&lt;/P&gt;&lt;P&gt;E.g. FOR EACH Variable in VariableList&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 08:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/inner-join-in-for-each-loop/m-p/228046#M80111</guid>
      <dc:creator />
      <dc:date>2010-08-19T08:16:24Z</dc:date>
    </item>
  </channel>
</rss>

