<?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 Turn fields into variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Turn-fields-into-variables/m-p/693470#M250848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to read a QVD, then select certain fields to include, and certain fields to aggregate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on a reload with the variables selected, it should spit out a QVD with the selected fields aggregated at the chosen level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bit that I'm having trouble with, is generalising it such that any QVD loaded will have the requisite number of variables generated such that they can be selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, once I have the variables, is there a clean way to iterate through them? I don't want to have big nested if statements, nor lots of individual if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is such a thing possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 09:51:43 GMT</pubDate>
    <dc:creator>richnorris</dc:creator>
    <dc:date>2014-09-25T09:51:43Z</dc:date>
    <item>
      <title>Turn fields into variables</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-fields-into-variables/m-p/693470#M250848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to read a QVD, then select certain fields to include, and certain fields to aggregate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on a reload with the variables selected, it should spit out a QVD with the selected fields aggregated at the chosen level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bit that I'm having trouble with, is generalising it such that any QVD loaded will have the requisite number of variables generated such that they can be selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, once I have the variables, is there a clean way to iterate through them? I don't want to have big nested if statements, nor lots of individual if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is such a thing possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 09:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-fields-into-variables/m-p/693470#M250848</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2014-09-25T09:51:43Z</dc:date>
    </item>
  </channel>
</rss>

