<?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: Assign table names in a for loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600851#M596964</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The variable vSheet does might not need the $() expansion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(vSheet = 'A', 'NewA', 'NewBC')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 11:01:47 GMT</pubDate>
    <dc:creator>jfkinspari</dc:creator>
    <dc:date>2019-07-10T11:01:47Z</dc:date>
    <item>
      <title>Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600501#M596955</link>
      <description>&lt;P&gt;Hey! Is there a possibility to assign table names in a for loop that looks like follows:&lt;/P&gt;&lt;P&gt;for each vSheet in 'A', 'B', 'C'&lt;/P&gt;&lt;P&gt;[Table Name]:&lt;/P&gt;&lt;P&gt;load F1, F2, F3&lt;/P&gt;&lt;P&gt;from [data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is $(vSheet));&lt;/P&gt;&lt;P&gt;next;&lt;/P&gt;&lt;P&gt;wheras the table names should be different for each of the 3 uploads?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600501#M596955</guid>
      <dc:creator>berstrom</dc:creator>
      <dc:date>2024-11-16T03:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600511#M596956</link>
      <description>&lt;P&gt;simply use the for loop variable?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$(vSheet):&lt;/P&gt;&lt;P&gt;load F1,F2,F3&lt;/P&gt;&lt;P&gt;from [data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is $(vSheet));&lt;/P&gt;&lt;P&gt;next;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 16:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600511#M596956</guid>
      <dc:creator>acsaggar</dc:creator>
      <dc:date>2019-07-09T16:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600571#M596957</link>
      <description>&lt;P&gt;also make sure you use noconcatenate if you want distinct tables&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600571#M596957</guid>
      <dc:creator>acsaggar</dc:creator>
      <dc:date>2019-07-09T18:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600725#M596958</link>
      <description>&lt;P&gt;Thanks for the answer, but is there also a way in using a table name other than the loop variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 06:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600725#M596958</guid>
      <dc:creator>berstrom</dc:creator>
      <dc:date>2019-07-10T06:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600738#M596959</link>
      <description>&lt;P&gt;Sure, you could calculate the label in a variable, and use that.&lt;/P&gt;&lt;P&gt;e.g. LET TableLabel = IF(&lt;SPAN&gt;$(vSheet)&lt;/SPAN&gt; = 'A', 'New Label', 'Label for B and C')&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$(TableLabel):&lt;BR /&gt;Load...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 07:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600738#M596959</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2019-07-10T07:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600832#M596961</link>
      <description>&lt;P&gt;Thanks for the answer, but now I get for all tables the new name that I assigned to A even for B and C. The table names look like that:&lt;/P&gt;&lt;P&gt;'NewLabel', 'NewLabel-1', 'NewLabel-2'&lt;/P&gt;&lt;P&gt;Any idea why I the IF statement doesn't work as required?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 10:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600832#M596961</guid>
      <dc:creator>berstrom</dc:creator>
      <dc:date>2019-07-10T10:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600838#M596962</link>
      <description>&lt;P&gt;How does your if() look?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 10:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600838#M596962</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2019-07-10T10:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600844#M596963</link>
      <description>&lt;P&gt;Basically as yours I think:&lt;/P&gt;&lt;P&gt;if($(vSheet) = 'A', 'NewA', 'NewBC')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 10:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600844#M596963</guid>
      <dc:creator>berstrom</dc:creator>
      <dc:date>2019-07-10T10:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600851#M596964</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The variable vSheet does might not need the $() expansion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(vSheet = 'A', 'NewA', 'NewBC')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 11:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600851#M596964</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2019-07-10T11:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600861#M596965</link>
      <description>&lt;P&gt;This results in the same problem as before with the difference that its now happening with 'NewBC'&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 11:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600861#M596965</guid>
      <dc:creator>berstrom</dc:creator>
      <dc:date>2019-07-10T11:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600867#M596966</link>
      <description>&lt;P&gt;Well, you should get 1 table named the first parameter in the if() and two tables named the second parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be careful with concatenation&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 11:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1600867#M596966</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2019-07-10T11:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Assign table names in a for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1608228#M596967</link>
      <description>&lt;P&gt;Have a look at the following Design Blog post, might help clarify the conversation you have been having:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-table-names-in-a-for-loop/m-p/1608228#M596967</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-07-31T19:05:55Z</dc:date>
    </item>
  </channel>
</rss>

