<?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 straight table (chart) and store it in a file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-straight-table-chart-and-store-it-in-a-file/m-p/224111#M76564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anykay,&lt;/P&gt;&lt;P&gt;I am afraid that you cannot use aggregate functions in a Load statement without a group by clause.&lt;/P&gt;&lt;P&gt;I also don't think we can use aggregate functions in a Preceding load as you have used. Try to use those functions in a table expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Jul 2010 10:48:25 GMT</pubDate>
    <dc:creator>syed_muzammil</dc:creator>
    <dc:date>2010-07-18T10:48:25Z</dc:date>
    <item>
      <title>Create a straight table (chart) and store it in a file</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-straight-table-chart-and-store-it-in-a-file/m-p/224110#M76563</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'm having trouble with Storing fields in a file. I'm not sure how to explain this but here's an attempt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mytable:&lt;/P&gt;&lt;P&gt;Load *,&lt;BR /&gt;Year(Date)&amp;amp;num(week(Date),00) as YearWeek,&lt;BR /&gt;count(Counter) as Numberof,&lt;BR /&gt;sum(Credits) as Credits,&lt;BR /&gt;(sum(Price)-sum(Credits)) as [Price - Credits]&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;Price,&lt;BR /&gt;Counter,&lt;BR /&gt;Credits,&lt;BR /&gt;Date&lt;BR /&gt;FROM &lt;E&gt; (qvd);&lt;/E&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Store mytable into mytable.txt (txt);&lt;/P&gt;&lt;P&gt;Drop mytable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have YearMonth as a dimension and then the other fields as expressions. When I've tried to load this one QlikView freezes and then crashes.&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;/A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 14:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-straight-table-chart-and-store-it-in-a-file/m-p/224110#M76563</guid>
      <dc:creator />
      <dc:date>2010-07-15T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Create a straight table (chart) and store it in a file</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-straight-table-chart-and-store-it-in-a-file/m-p/224111#M76564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anykay,&lt;/P&gt;&lt;P&gt;I am afraid that you cannot use aggregate functions in a Load statement without a group by clause.&lt;/P&gt;&lt;P&gt;I also don't think we can use aggregate functions in a Preceding load as you have used. Try to use those functions in a table expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jul 2010 10:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-straight-table-chart-and-store-it-in-a-file/m-p/224111#M76564</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-07-18T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Create a straight table (chart) and store it in a file</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-straight-table-chart-and-store-it-in-a-file/m-p/224112#M76565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Or you can have a separate load statement for the functions above. If you are grouping the aggrgation based on the dates then :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mytable:&lt;/P&gt;&lt;P&gt;Load *,&lt;BR /&gt;Year(Date)&amp;amp;num(week(Date),00) as YearWeek&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;Price,&lt;BR /&gt;Counter,&lt;BR /&gt;Credits,&lt;BR /&gt;Date&lt;BR /&gt;FROM &lt;E&gt; (qvd);&lt;/E&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mytable_temp:&lt;/P&gt;&lt;P&gt;Load Date,&lt;BR /&gt;count(Counter) as Numberof,&lt;BR /&gt;sum(Credits) as Credits,&lt;BR /&gt;(sum(Price)-sum(Credits)) as [Price - Credits]&lt;/P&gt;&lt;P&gt;Resident mytable group by Date;&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Store mytable_temp into mytable.txt (txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jul 2010 12:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-straight-table-chart-and-store-it-in-a-file/m-p/224112#M76565</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-07-18T12:07:33Z</dc:date>
    </item>
  </channel>
</rss>

