<?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 Create a table with new fields with a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-new-fields-with-a-macro/m-p/203378#M60732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need to summarize a big set of data to show partial and total sum at different level of aggregation. Based on the selection of a customer I have a macro that cycles on possible values of a set of fields, and for each combination extracts and save the value of some expression.&lt;/P&gt;&lt;P&gt;Suppose level1 may assume typea, typeb and typec and level2 subtype1, subtype2, subtype3, subtype4; at the end I have to create for each customer aggregated data like this:&lt;/P&gt;&lt;P&gt;- typea = 100&lt;/P&gt;&lt;P&gt;- typea_ subtype1 = 80&lt;/P&gt;&lt;P&gt;- typea_ subtype2 = 20&lt;/P&gt;&lt;P&gt;- typeb = 120&lt;/P&gt;&lt;P&gt;- typeb_ subtype1 = 40&lt;/P&gt;&lt;P&gt;- typeb_ subtype2 = 15&lt;/P&gt;&lt;P&gt;- typeb_ subtype2 = 55&lt;/P&gt;&lt;P&gt;- typeb_ subtype2 = 10&lt;/P&gt;&lt;P&gt;... and so on&lt;/P&gt;&lt;P&gt;In order to make available this data to a dashboard I've tried using variables; it works, but having 7 level of aggregation the usage of memory is too huge, so I'd like to create a new table having as columns: customer, typea, typeb, typec, typea_ subtype1, and so on.&lt;/P&gt;&lt;P&gt;The question is: is it possible to create a table like that, with fields that don't belong to the original data but are calculated real-time?&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestion&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Nov 2010 18:13:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-26T18:13:38Z</dc:date>
    <item>
      <title>Create a table with new fields with a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-new-fields-with-a-macro/m-p/203378#M60732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need to summarize a big set of data to show partial and total sum at different level of aggregation. Based on the selection of a customer I have a macro that cycles on possible values of a set of fields, and for each combination extracts and save the value of some expression.&lt;/P&gt;&lt;P&gt;Suppose level1 may assume typea, typeb and typec and level2 subtype1, subtype2, subtype3, subtype4; at the end I have to create for each customer aggregated data like this:&lt;/P&gt;&lt;P&gt;- typea = 100&lt;/P&gt;&lt;P&gt;- typea_ subtype1 = 80&lt;/P&gt;&lt;P&gt;- typea_ subtype2 = 20&lt;/P&gt;&lt;P&gt;- typeb = 120&lt;/P&gt;&lt;P&gt;- typeb_ subtype1 = 40&lt;/P&gt;&lt;P&gt;- typeb_ subtype2 = 15&lt;/P&gt;&lt;P&gt;- typeb_ subtype2 = 55&lt;/P&gt;&lt;P&gt;- typeb_ subtype2 = 10&lt;/P&gt;&lt;P&gt;... and so on&lt;/P&gt;&lt;P&gt;In order to make available this data to a dashboard I've tried using variables; it works, but having 7 level of aggregation the usage of memory is too huge, so I'd like to create a new table having as columns: customer, typea, typeb, typec, typea_ subtype1, and so on.&lt;/P&gt;&lt;P&gt;The question is: is it possible to create a table like that, with fields that don't belong to the original data but are calculated real-time?&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestion&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 18:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-new-fields-with-a-macro/m-p/203378#M60732</guid>
      <dc:creator />
      <dc:date>2010-11-26T18:13:38Z</dc:date>
    </item>
  </channel>
</rss>

