<?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 User defined field for aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196664#M56630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you should be able to set up variables for this purpose. For example, you could use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum(if(aggr(Fabs(Sum(if([Code]='00',([Dmd]-[Dmd Plan])))),$(vAgg1),$(vAgg2))&amp;gt;&lt;BR /&gt;aggr(Fabs(Sum(if([ Code]='00',([Dmd])))),$(vAgg1),$(vAgg2)) ,&lt;BR /&gt;aggr(Fabs(Sum(if([Code]='00',([Dmd])))),$(vAgg1),$(vAgg2)),aggr(Fabs(Sum(if([Code]='00',&lt;BR /&gt;([Dmd]-[Dmd Plan])))),$(vAgg1),$(vAgg2))))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;And then define vAgg1 as Date and vAgg2 as [Comm] and it should calculate as before the change. You can even replace longer sections of the expression with variables, just use $(VarName) in place of that section the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2009 21:21:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-23T21:21:21Z</dc:date>
    <item>
      <title>User defined field for aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196663#M56629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are writing a report that calculates weighted absolute accuracy.&lt;/P&gt;&lt;P&gt;I currently have similar formula to calculate difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(aggr(Fabs(Sum(if([Code]='00',([Dmd]-[Dmd Plan])))),Date,[Comm])&amp;gt;aggr(Fabs(Sum(if([ Code]='00',([Dmd])))),Date,[Comm]) ,aggr(Fabs(Sum(if([Code]='00',([Dmd])))),Date,[Comm]),aggr(Fabs(Sum(if([Code]='00',([Dmd]-[Dmd Plan])))),Date,[Comm])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we would like to make this formula dynamic where users can choose aggregation at any level. In the above formula, aggregation is at Date and Comm level. Is it possible to define variables in script that can be used in report to let users to pick their own aggregation level ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 21:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196663#M56629</guid>
      <dc:creator />
      <dc:date>2009-09-23T21:00:39Z</dc:date>
    </item>
    <item>
      <title>User defined field for aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196664#M56630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you should be able to set up variables for this purpose. For example, you could use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum(if(aggr(Fabs(Sum(if([Code]='00',([Dmd]-[Dmd Plan])))),$(vAgg1),$(vAgg2))&amp;gt;&lt;BR /&gt;aggr(Fabs(Sum(if([ Code]='00',([Dmd])))),$(vAgg1),$(vAgg2)) ,&lt;BR /&gt;aggr(Fabs(Sum(if([Code]='00',([Dmd])))),$(vAgg1),$(vAgg2)),aggr(Fabs(Sum(if([Code]='00',&lt;BR /&gt;([Dmd]-[Dmd Plan])))),$(vAgg1),$(vAgg2))))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;And then define vAgg1 as Date and vAgg2 as [Comm] and it should calculate as before the change. You can even replace longer sections of the expression with variables, just use $(VarName) in place of that section the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 21:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196664#M56630</guid>
      <dc:creator />
      <dc:date>2009-09-23T21:21:21Z</dc:date>
    </item>
    <item>
      <title>User defined field for aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196665#M56631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you NMiller but i guess i am way behind in creating Variable in Load sript.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Let's say I have a product hierarchy table. In that table the lowest form is at SKU level, then Prod then Comm. and the highest level is div.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Table Name = Hierarchy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="margin:auto auto auto 4.65pt;width:4in;border-collapse:collapse;mso-padding-alt:0in 5.4pt 0in 5.4pt;" width="384"&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:0;mso-yfti-firstrow:yes;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Div&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Comm&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Prod&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;SKU&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Actl Qty&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Demand Plan&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:1;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ABC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ABCD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11111&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;900&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:2;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ABC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ABCD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11112&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;800&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:3;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ABC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;DDK&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11113&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;300&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;700&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:4;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;BBC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;DDDD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11114&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;400&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:5;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;BBC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;DDDD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11115&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;500&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;500&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:6;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;BBC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;CCCC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11116&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;400&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:7;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;BBC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;CCCC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11117&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;700&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;300&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:8;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;DDD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AAAA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11118&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;800&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;mso-yfti-irow:9;mso-yfti-lastrow:yes;"&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;AA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;DDD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin:0in 0in 0pt;"&gt;BBBB&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;11119&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;900&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right:5.4pt;padding-left:5.4pt;padding-bottom:0in;width:48pt;padding-top:0in;height:12.75pt;background-color:transparent;border:#ece9d8;" valign="bottom" width="64"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;How do i create a variable in load script to allow users to select aggregation level of their own choice of hierarchical level?&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;I have tried using following but did not work.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Let Var= ('DIV','comm','Prod','SKU'),'Hierachy'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you .&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 20:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196665#M56631</guid>
      <dc:creator />
      <dc:date>2009-09-24T20:21:48Z</dc:date>
    </item>
    <item>
      <title>User defined field for aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196666#M56632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to allow your user to be able to select one of those fields and then have the chart display for the selected field? If so, you should be able to use a Cyclic Group for this purpose. The Cyclic Group basically allows you to define multiple dimensions and then lets the user select the one they would like to use.&lt;/P&gt;&lt;P&gt;If you can't use a Cyclic Group and you really want to give the user a listbox with each of your levels in it, then you need to load those in a separate field. I would use an Inline Load and give the field a unique name, so it is not linked to any of your other data. Something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD * INLINE [&lt;BR /&gt; Select1&lt;BR /&gt; Div&lt;BR /&gt; comm&lt;BR /&gt; Prod&lt;BR /&gt; SKU&lt;BR /&gt;];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then you could set up a variable with the value of: =GetFieldSelections(Select1) or =ONLY(Select1). The variable could then be used in your expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 21:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-for-aggregation/m-p/196666#M56632</guid>
      <dc:creator />
      <dc:date>2009-09-28T21:15:44Z</dc:date>
    </item>
  </channel>
</rss>

