<?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: Generate on the fly tables from existing table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-on-the-fly-tables-from-existing-table/m-p/378718#M572827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I managed to find the answer myself. Below is what I did&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&amp;nbsp; =Aggr(DISTINCT ROUND( Notional/1000000,.1), Notional)&lt;/P&gt;&lt;P&gt;Expression: =Count(ROUND(Notional/1000000, .1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to actually add an if condition to the Aggr() function to eliminate any NULL values which I haven't done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 06:24:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-17T06:24:40Z</dc:date>
    <item>
      <title>Generate on the fly tables from existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-on-the-fly-tables-from-existing-table/m-p/378717#M572826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently extracting all my data to be shown in my QlikView application from a single view in a SQL database. It returns many columns like NotionalAmt, ccypair, strike, tradedate, PnlAmt and so on.. I also have two calendar controls which will be used by users to select a data range to filter the data populated from the db (Please note that this filtering by date is done at the QlikView level).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do now is dynamically generate a new table from the existing data QlikView has in memory (Ofcourse this keeps changing based on users selections). The data generated for the dynamic table to be shown in a histogram (barchart) is something as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sql query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;ROUND(Notional/1000000, .1) as 'Notional', &lt;/P&gt;&lt;P&gt;NULLIF(COUNT(Notional/1000000,0) as Frequency&lt;/P&gt;&lt;P&gt;from myView&lt;/P&gt;&lt;P&gt;GROUP BY ROUND(Notional/1000000, .1)&lt;/P&gt;&lt;P&gt;HAVING COUNT(Notional/1000000) &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to use a SQL or LOAD statement as above. I instead want to use some QlikView functions (Like Aggr()) and set analysis which will help in achieving the same result as the above query does. Any suggestions please with an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 03:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-on-the-fly-tables-from-existing-table/m-p/378717#M572826</guid>
      <dc:creator />
      <dc:date>2012-08-17T03:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generate on the fly tables from existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-on-the-fly-tables-from-existing-table/m-p/378718#M572827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I managed to find the answer myself. Below is what I did&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&amp;nbsp; =Aggr(DISTINCT ROUND( Notional/1000000,.1), Notional)&lt;/P&gt;&lt;P&gt;Expression: =Count(ROUND(Notional/1000000, .1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to actually add an if condition to the Aggr() function to eliminate any NULL values which I haven't done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 06:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-on-the-fly-tables-from-existing-table/m-p/378718#M572827</guid>
      <dc:creator />
      <dc:date>2012-08-17T06:24:40Z</dc:date>
    </item>
  </channel>
</rss>

