<?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 Variable for Where Clause and QVD Storage in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1722354#M54965</link>
    <description>&lt;P&gt;Currently using Qlik Sense April 2020 Enterprise. I am looking to use a variable to restrict the data and create multiple QVD files.I would like to run some sort of a While loop which will run until all&amp;nbsp; the variable values are used and QVD's created for each variable value.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;$(Variable) =A,B,C ........&lt;/P&gt;&lt;P&gt;Data_Table:&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;From Table&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were Field =$(variable)&lt;/P&gt;&lt;P&gt;Store&amp;nbsp;&amp;nbsp;Data_Table into \\Serve1\$(variable)\Data_Table.qvd&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 20:33:46 GMT</pubDate>
    <dc:creator>Rehan</dc:creator>
    <dc:date>2020-06-25T20:33:46Z</dc:date>
    <item>
      <title>Variable for Where Clause and QVD Storage</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1722354#M54965</link>
      <description>&lt;P&gt;Currently using Qlik Sense April 2020 Enterprise. I am looking to use a variable to restrict the data and create multiple QVD files.I would like to run some sort of a While loop which will run until all&amp;nbsp; the variable values are used and QVD's created for each variable value.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;$(Variable) =A,B,C ........&lt;/P&gt;&lt;P&gt;Data_Table:&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;From Table&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were Field =$(variable)&lt;/P&gt;&lt;P&gt;Store&amp;nbsp;&amp;nbsp;Data_Table into \\Serve1\$(variable)\Data_Table.qvd&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 20:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1722354#M54965</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-06-25T20:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for Where Clause and QVD Storage</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1722390#M54969</link>
      <description>&lt;P&gt;Set vVariable = 'A', 'B', 'C' ;&lt;/P&gt;&lt;P&gt;For each v in $(vVariable)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Data_Table:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Select *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;From Table&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Were Field ='$(v)'&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Store Data_Table into \\Serve1\$(v)\Data_Table.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Drop table Data_Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Next v&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 21:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1722390#M54969</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-06-25T21:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for Where Clause and QVD Storage</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725443#M55266</link>
      <description>&lt;P&gt;Thanx for the solution. I have one more requirement to add.&amp;nbsp; Once this loadd is done . I am dropping the table but still would like to get the row count for each v. I tried the below statement but it didnt work. Any Ideas?&lt;/P&gt;&lt;P&gt;Data_Table:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Select *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;From Table&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Were Field ='$(v)'&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let vRowCount_Data_Table_$(v) =NoofRows('Data_Table_$(v)')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Store Data_Table into \\Serve1\$(v)\Data_Table.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Drop table Data_Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Next v&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 15:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725443#M55266</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-07-06T15:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for Where Clause and QVD Storage</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725483#M55270</link>
      <description>&lt;P&gt;You don't have tables named 'Data_Table_$(v)' your table name is 'Data_Table'.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Set vVariable = 'A', 'B', 'C' ;&lt;/P&gt;&lt;P&gt;For each v in $(vVariable)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Data_Table:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Select *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;From Table&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Were Field ='$(v)'&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Let vNoOfRows_$(v) = NoOfRows('Data_Table') ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Store Data_Table into \\Serve1\$(v)\Data_Table.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Drop table Data_Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Next v&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 18:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725483#M55270</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-07-06T18:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for Where Clause and QVD Storage</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725923#M55338</link>
      <description>&lt;P&gt;Thanks for the Prompt responses . ONe last requirement. I would like to create a table for Row count for every single $(v) value. Something like&amp;nbsp; below which I can create as a Table on Front end.&lt;/P&gt;&lt;P&gt;How I can do that .&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;A, 200,900&lt;/P&gt;&lt;P&gt;B, 400,900&lt;/P&gt;&lt;P&gt;etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 01:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725923#M55338</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-07-08T01:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for Where Clause and QVD Storage</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725956#M55342</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set vVariable = 'A', 'B', 'C' ;&lt;/P&gt;&lt;P&gt;For each v in $(vVariable)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Data_Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;From Table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Were Field ='$(v)'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Let vNoOfRows_$(v) = NoOfRows('Data_Table') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Rowcounts:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; '$(v)' as Variable,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; NoOfRows('Data_Table') As NoOfRows&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Autogenerate 1&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Store Data_Table into \\Serve1\$(v)\Data_Table.qvd;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Drop table Data_Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next v&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 07:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-for-Where-Clause-and-QVD-Storage/m-p/1725956#M55342</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-07-08T07:08:39Z</dc:date>
    </item>
  </channel>
</rss>

