<?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 Excel sheet names based on month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543472#M109539</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2543388 - Loop Dynamic Excel sheet names based on month.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187024iF793CB3B46CCD2F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2543388 - Loop Dynamic Excel sheet names based on month.PNG" alt="2543388 - Loop Dynamic Excel sheet names based on month.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//----------------------------------------------------------------------------//&lt;BR /&gt;LET vPowerFieldNameCounter = '3'; // Initiate a Power Field counter Outside of the Loop&lt;/P&gt;&lt;P&gt;TRACE Start Loop;&lt;BR /&gt;FOR EACH vSheet IN '[Mar-26]','[Feb-26]','[Jan-26]' // Include the New Sheet Name Here, Qlik doesnt allow you to pull Excel Sheet Names Dynamically in this step. you need to create another loop that pulls excel metadata before this loop starts&lt;/P&gt;&lt;P&gt;TRACE Loading sheet: $(vSheet) Data;&lt;BR /&gt;&lt;BR /&gt;Loop:&lt;BR /&gt;LOAD RecNo() AS RowOrder,&lt;BR /&gt;PurgeChar('$(vSheet)', '[]') AS SheetName,&lt;BR /&gt;Text(PurgeChar('$(vSheet)', '[]')) AS MonthYear,&lt;BR /&gt;FieldA,&lt;BR /&gt;FieldB,&lt;BR /&gt;[Power from Source A$(vPowerFieldNameCounter)] AS PowerValue // Your New Requirement&lt;BR /&gt;FROM $(vFilePath)&lt;BR /&gt;(ooxml, embedded labels, table is $(vSheet));&lt;/P&gt;&lt;P&gt;TotalsRow:&lt;BR /&gt;LOAD RowOrder&lt;BR /&gt;Resident Loop&lt;BR /&gt;Where FieldA = 'Totals';&lt;/P&gt;&lt;P&gt;LET vTotalsRow = Peek('RowOrder', 0, 'TotalsRow'); // Store the Rowno of the row where Where FieldA = 'Totals'&lt;BR /&gt;&lt;BR /&gt;Drop Table TotalsRow;&lt;BR /&gt;&lt;BR /&gt;//NoConcatenate // This is causingissue with concatenation of the succeeding tables after the the loop finishes one round&lt;BR /&gt;FinalTable:&lt;BR /&gt;Load *,&lt;BR /&gt;0 as DummyField // This Dummy field is to avoid Auto Concat of 'FinalTable' to 'Loop' Table&lt;BR /&gt;Resident Loop&lt;BR /&gt;Where RowOrder &amp;lt; '$(vTotalsRow)';&lt;BR /&gt;Drop table Loop;&lt;BR /&gt;//Drop Field DummyField;&lt;BR /&gt;&lt;BR /&gt;LET vPowerFieldNameCounter = $(vPowerFieldNameCounter) - 1; // Increment/Decrement the Power Field counter Inside of the Loop&lt;BR /&gt;&lt;BR /&gt;NEXT&lt;BR /&gt;TRACE End Loop;&lt;BR /&gt;//----------------------------------------------------------------------------//&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2026 16:08:01 GMT</pubDate>
    <dc:creator>Qrishna</dc:creator>
    <dc:date>2026-02-23T16:08:01Z</dc:date>
    <item>
      <title>Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543388#M109515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a scenario where I have an excel file with sheet names named in descending order of a financial year...for example- Mar'26, Feb'26....until April'25. Same type of data is present in all these monthly sheets and other extra sheets are also there (which i load separately).&lt;/P&gt;&lt;P&gt;The sheets were named as Jan'25, Mar'26, but apostrophe was causing issue. So in the source file I changed into hyphen '-' like Jan-25,Feb-26 etc...&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; for loop method, but though the code runs without error, data is not being pulled. I used the following code:&lt;/P&gt;&lt;P&gt;LET vFilePath = '.lib://.....Feb 2026/Power data base 2025-26.xlsx';&lt;/P&gt;&lt;P&gt;LET vMonth = 'April-25,Mar-25,May-25,June-25,Jul-25,Aug-25,Sep-25,Oct-25,Nov-25,Dec-25,Jan-26';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FOR EACH vMonth IN $(vMonth)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Power_Data:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;//TableName('$(vMonth)') as Sheetname,&lt;BR /&gt;//left(FileBaseName(),3) as Monty,&lt;BR /&gt;text('$(vMonth)') as MonthYear,&lt;BR /&gt;//month('$(vMonth)') as nummonth,&lt;BR /&gt;//'$(vMonth)' &amp;amp; '-' &amp;amp; SubField('$(vMonth)',2) as MonthYear,&lt;/P&gt;&lt;P&gt;field 1,&lt;/P&gt;&lt;P&gt;field 2,&lt;/P&gt;&lt;P&gt;field 3&lt;/P&gt;&lt;P&gt;..and other fields&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;['$(vFilePath)'] (ooxml, embedded labels, header is 1 lines,table is '$(vMonth)');&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;NEXT vMonth;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, for all these sheets, I dont want to pull rows after "Totals" Row...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion/solution is appreciated. Thanks in advance!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 16:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543388#M109515</guid>
      <dc:creator>niranjana</dc:creator>
      <dc:date>2026-02-19T16:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543441#M109527</link>
      <description>&lt;P&gt;The syntax of vMonth is wrong because each single parameter needs to be wrapped with single-quotes, like:&lt;/P&gt;&lt;P&gt;vMonth = 'Jan', 'Feb', ...&lt;/P&gt;&lt;P&gt;Further I wouldn't use:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FOR EACH vMonth IN $(vMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;respectively naming the iteration-variable equally to the list-variable else rather:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FOR EACH vSheet IN $(vMonth)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 13:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543441#M109527</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-20T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543464#M109536</link>
      <description>&lt;P&gt;Hi, Thanks for your reply.&lt;/P&gt;&lt;P&gt;When I enclose all months in single quotes, LET ='Jan','Feb',..... shows in red. I used SET instead. But didnt work. Also, I want the sheet name to be captured as "MonthYear" field in front end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be helpful to know where exactly I have to modify the code.&lt;/P&gt;&lt;P&gt;2) Also, i dont want rows after "total" row......I want to pull rows only above that....&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2026 00:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543464#M109536</guid>
      <dc:creator>niranjana</dc:creator>
      <dc:date>2026-02-21T00:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543471#M109538</link>
      <description>&lt;P&gt;This variable-assignment syntax should be working:&lt;/P&gt;&lt;P&gt;set&amp;nbsp;&lt;SPAN&gt;vMonth = &lt;STRONG&gt;"&lt;/STRONG&gt;'Jan', 'Feb', ...&lt;STRONG&gt;"&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which means that the entire string with the n single-quotes is wrapped with double-quotes.&lt;/P&gt;&lt;P&gt;The above is just an example - you could of course use your MonthYear as sheet-name as well as an included information within the load. But like hinted I wouldn't use the same name for the list- and the iteration-variable (never tried that and it may be working but IMO it's rather confusing ...).&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2026 12:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543471#M109538</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-21T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543472#M109539</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2543388 - Loop Dynamic Excel sheet names based on month.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187024iF793CB3B46CCD2F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2543388 - Loop Dynamic Excel sheet names based on month.PNG" alt="2543388 - Loop Dynamic Excel sheet names based on month.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//----------------------------------------------------------------------------//&lt;BR /&gt;LET vPowerFieldNameCounter = '3'; // Initiate a Power Field counter Outside of the Loop&lt;/P&gt;&lt;P&gt;TRACE Start Loop;&lt;BR /&gt;FOR EACH vSheet IN '[Mar-26]','[Feb-26]','[Jan-26]' // Include the New Sheet Name Here, Qlik doesnt allow you to pull Excel Sheet Names Dynamically in this step. you need to create another loop that pulls excel metadata before this loop starts&lt;/P&gt;&lt;P&gt;TRACE Loading sheet: $(vSheet) Data;&lt;BR /&gt;&lt;BR /&gt;Loop:&lt;BR /&gt;LOAD RecNo() AS RowOrder,&lt;BR /&gt;PurgeChar('$(vSheet)', '[]') AS SheetName,&lt;BR /&gt;Text(PurgeChar('$(vSheet)', '[]')) AS MonthYear,&lt;BR /&gt;FieldA,&lt;BR /&gt;FieldB,&lt;BR /&gt;[Power from Source A$(vPowerFieldNameCounter)] AS PowerValue // Your New Requirement&lt;BR /&gt;FROM $(vFilePath)&lt;BR /&gt;(ooxml, embedded labels, table is $(vSheet));&lt;/P&gt;&lt;P&gt;TotalsRow:&lt;BR /&gt;LOAD RowOrder&lt;BR /&gt;Resident Loop&lt;BR /&gt;Where FieldA = 'Totals';&lt;/P&gt;&lt;P&gt;LET vTotalsRow = Peek('RowOrder', 0, 'TotalsRow'); // Store the Rowno of the row where Where FieldA = 'Totals'&lt;BR /&gt;&lt;BR /&gt;Drop Table TotalsRow;&lt;BR /&gt;&lt;BR /&gt;//NoConcatenate // This is causingissue with concatenation of the succeeding tables after the the loop finishes one round&lt;BR /&gt;FinalTable:&lt;BR /&gt;Load *,&lt;BR /&gt;0 as DummyField // This Dummy field is to avoid Auto Concat of 'FinalTable' to 'Loop' Table&lt;BR /&gt;Resident Loop&lt;BR /&gt;Where RowOrder &amp;lt; '$(vTotalsRow)';&lt;BR /&gt;Drop table Loop;&lt;BR /&gt;//Drop Field DummyField;&lt;BR /&gt;&lt;BR /&gt;LET vPowerFieldNameCounter = $(vPowerFieldNameCounter) - 1; // Increment/Decrement the Power Field counter Inside of the Loop&lt;BR /&gt;&lt;BR /&gt;NEXT&lt;BR /&gt;TRACE End Loop;&lt;BR /&gt;//----------------------------------------------------------------------------//&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 16:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543472#M109539</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2026-02-23T16:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543476#M109540</link>
      <description>&lt;P&gt;Hi Qrishna!&lt;/P&gt;&lt;P&gt;1) Thanks for your reply. &lt;STRONG&gt;Your solution is working for my scenario now!. All the months are getting pulled&lt;/STRONG&gt;. But the rows after "Total" are still getting pulled. That alone is not working though the code doesn't throw any error......&lt;/P&gt;&lt;P&gt;2) But I have one more issue. In all these monthly sheets, only one field is different after certain character...for example.... "Power from Source A1" in Jan-26, "Power from Source A2" in Feb-26 and so on....So the field is not getting pulled while completing for loop.....How to pull this field from all sheets in for loop?&lt;/P&gt;&lt;P&gt;3) Also, if in future more monthly sheets are to be added, how to write the code to dynamically pull all sheets (like using wildmatch ? )&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2026 14:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543476#M109540</guid>
      <dc:creator>niranjana</dc:creator>
      <dc:date>2026-02-22T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543482#M109542</link>
      <description>&lt;P&gt;1. Field with Names '&lt;SPAN&gt;"Power from Source A1" in Jan-26, "Power from Source A2" in Feb-26 and so on&lt;/SPAN&gt;' new requirement - Updated the code above to include your new dynamic fields.&lt;/P&gt;&lt;P&gt;2. Attach the Excel file with all Sheet Names and some future added dummy sheets - i need to see how the sheet names are changing&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2026 09:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543482#M109542</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2026-02-22T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543624#M109581</link>
      <description>&lt;P&gt;Hi Qrishna,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The issue of "Total" is still there......The rows after "Total" are still getting pulled. That alone is not working, though the code doesn't throw any error during load....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for any solution/help in advance!!&lt;/P&gt;&lt;P&gt;Niranjana&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 17:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543624#M109581</guid>
      <dc:creator>niranjana</dc:creator>
      <dc:date>2026-02-24T17:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543665#M109582</link>
      <description>&lt;P&gt;Not wanted records could be filtered with a where-clause, for example:&lt;/P&gt;&lt;P&gt;... where Field &amp;lt;&amp;gt; 'total';&lt;BR /&gt;... where isnum(Field);&lt;BR /&gt;... where len(trim(Field));&lt;BR /&gt;... where rowno() &amp;lt; X;&lt;/P&gt;&lt;P&gt;or similar queries - maybe also in combination against n fields.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 06:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543665#M109582</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-25T06:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543709#M109586</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thanks for your reply... But I have 5 rows after "Total"&amp;nbsp; under "Plants" column which I don't want to pull.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is all the rows from "Total" and after that should be ignored. I only want to include rows : A,B,C&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plant&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;Total&lt;/P&gt;&lt;P&gt;Abstract&lt;/P&gt;&lt;P&gt;Source Power&lt;/P&gt;&lt;P&gt;..... etc....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any solution in advance!!&lt;/P&gt;&lt;P&gt;Niranjana&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 11:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543709#M109586</guid>
      <dc:creator>niranjana</dc:creator>
      <dc:date>2026-02-25T11:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543712#M109587</link>
      <description>&lt;P&gt;Hi -&amp;nbsp; you have to incorporate the logic that i provided and not directly use the code, as my dummy data is not same as your data. if you need the exact solution, provide the original data or atleast a data set that matches your original data.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 11:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543712#M109587</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2026-02-25T11:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Excel sheet names based on month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543727#M109591</link>
      <description>&lt;P&gt;The above mentioned filtering goes against the entire record and not only a single field. This means each field could be used to filter against isnum(), len(trim()), ... Beside this also direct value-filters are applicable, maybe with something like:&lt;/P&gt;&lt;P&gt;... where match(Plant, 'Total, 'Abstract', 'Source Power') = 0;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which means an excluding of values. If there are only a few wanted known values within the field these values might be queried as an include-filter.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 14:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Excel-sheet-names-based-on-month/m-p/2543727#M109591</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-02-25T14:01:34Z</dc:date>
    </item>
  </channel>
</rss>

