<?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: Dynamic  loading of tables from Data Base in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112205#M367696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dear.&lt;/P&gt;&lt;P&gt;I also created . please have a look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelRead:&lt;/P&gt;&lt;P&gt;LOAD Value&lt;/P&gt;&lt;P&gt;frOM &amp;lt;excelfile&amp;gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Each a in FieldValueList('Value')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vValue = peek('Value',$(a), 'ExcelRead');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTable = subfield(vValue, '_', 1)&lt;/P&gt;&lt;P&gt;LET vBU = subfield(vValue, '_', 2)&lt;/P&gt;&lt;P&gt;LET vLedger = subfield(vValue, '_', 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vBU)' as BU,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vLedger)' as Ledger;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM '$(vTable)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2016 15:57:10 GMT</pubDate>
    <dc:creator>harishicon</dc:creator>
    <dc:date>2016-07-08T15:57:10Z</dc:date>
    <item>
      <title>Dynamic  loading of tables from Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112201#M367692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have one excel which is containing the tables name . The Tables name which are mentioned should be picked up from the database and two flags to be added in the table along the fields name&amp;nbsp; . Name of tables can grow in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:- In Excel there is Table name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maxx_MIS_H where Maxx&amp;nbsp; is Table name, MIS is BU Code and H is Ledger.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now Maxx should be picked up and MIS and H will be add as column in form of flag along with table's fields.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me how can I pick the table name form excel and connect with the data base as well as how can i make flag in the table as mentioned above dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 17:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112201#M367692</guid>
      <dc:creator>harishicon</dc:creator>
      <dc:date>2016-07-07T17:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic  loading of tables from Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112202#M367693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is one value in excel:&lt;/P&gt;&lt;P&gt;you can capture the values in variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelRead:&lt;/P&gt;&lt;P&gt;LOAD Value&lt;/P&gt;&lt;P&gt;frOM &amp;lt;excelfile&amp;gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vValue = peek('Value',0, 'ExcelRead');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTable = subfield(vValue, '_', 1)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vBU = subfield(vValue, '_', 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vLedger = subfield(vValue, '_', 3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vBU)' as BU,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vLedger)' as Ledger;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM '$(vTable)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In case of multiple table names from excel file - you will have loop thru the above code based on the number of records within the excel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 18:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112202#M367693</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2016-07-07T18:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic  loading of tables from Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112203#M367694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to use loop in above scenario. Please tell me &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 11:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112203#M367694</guid>
      <dc:creator>harishicon</dc:creator>
      <dc:date>2016-07-08T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic  loading of tables from Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112204#M367695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For looping, you can use the same script enclosed in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ExcelRead:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;frOM &amp;lt;excelfile&amp;gt; ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LET&amp;nbsp; vRowCount = NoOfRows('ExcelRead');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FOR i = 0 to $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vRowCount&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vValue = peek('Value',&lt;STRONG&gt;$(i)&lt;/STRONG&gt;, 'ExcelRead');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vTable = subfield(vValue, '_', 1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LET vBU = subfield(vValue, '_', 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LET vLedger = subfield(vValue, '_', 3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vBU)' as BU,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vLedger)' as Ledger;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FROM '$(vTable)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if you were to concatenate all the DB tables into one table - you will have to declare the table name before the loop with null values. And then use a Concatenate(TableName) before the LOAD statement in the loop.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 12:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112204#M367695</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2016-07-08T12:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic  loading of tables from Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112205#M367696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dear.&lt;/P&gt;&lt;P&gt;I also created . please have a look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelRead:&lt;/P&gt;&lt;P&gt;LOAD Value&lt;/P&gt;&lt;P&gt;frOM &amp;lt;excelfile&amp;gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Each a in FieldValueList('Value')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vValue = peek('Value',$(a), 'ExcelRead');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTable = subfield(vValue, '_', 1)&lt;/P&gt;&lt;P&gt;LET vBU = subfield(vValue, '_', 2)&lt;/P&gt;&lt;P&gt;LET vLedger = subfield(vValue, '_', 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vBU)' as BU,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vLedger)' as Ledger;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM '$(vTable)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 15:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-loading-of-tables-from-Data-Base/m-p/1112205#M367696</guid>
      <dc:creator>harishicon</dc:creator>
      <dc:date>2016-07-08T15:57:10Z</dc:date>
    </item>
  </channel>
</rss>

