<?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 Both dynamic dimensions AND expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504653#M188603</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 want to make a chart where the user is able to select dimensions and expressions dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox in which the available tables are shown ($table).&lt;/P&gt;&lt;P&gt;I then created a listbox which shows the available fields in that specific table ($field). This listbox should be used as the source for the dimensions, so in a chart I would get the dimension by getFieldSelection($Field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: How can I make a listbox from which the user can select the fields for the aggregation in the chart?&lt;/P&gt;&lt;P&gt;I can't create another listbox with $Field because it would only show the selected dimensions.&lt;/P&gt;&lt;P&gt;My first approach was to load the $Field list into a variable, but unfortunately i don't know how.&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 09:26:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-20T09:26:18Z</dc:date>
    <item>
      <title>Both dynamic dimensions AND expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504653#M188603</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 want to make a chart where the user is able to select dimensions and expressions dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox in which the available tables are shown ($table).&lt;/P&gt;&lt;P&gt;I then created a listbox which shows the available fields in that specific table ($field). This listbox should be used as the source for the dimensions, so in a chart I would get the dimension by getFieldSelection($Field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: How can I make a listbox from which the user can select the fields for the aggregation in the chart?&lt;/P&gt;&lt;P&gt;I can't create another listbox with $Field because it would only show the selected dimensions.&lt;/P&gt;&lt;P&gt;My first approach was to load the $Field list into a variable, but unfortunately i don't know how.&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504653#M188603</guid>
      <dc:creator />
      <dc:date>2013-08-20T09:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Both dynamic dimensions AND expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504654#M188604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With QV 11 you could see an example in the demo "Whats New in QlikView11.qvw" (in your install-folder) in tab "Reports" how in worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 10:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504654#M188604</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-20T10:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Both dynamic dimensions AND expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504655#M188605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. In this .qvw the metrics and dimensions are predefined in the load script. I would like that the user can chose out of all available fields in the table without limiting them or having to know which fields are metrics or dimensions in the load process. There will be a number of tables that the user can choose from, this is why I want to keep completely dynamic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504655#M188605</guid>
      <dc:creator />
      <dc:date>2013-08-20T12:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Both dynamic dimensions AND expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504656#M188606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think you could autogenerate a list of fields in the script. Dimension List and Metrics list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe try to use a system field &lt;STRONG&gt;$Field&lt;/STRONG&gt;, but I'm not sure, that it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504656#M188606</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2013-08-20T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Both dynamic dimensions AND expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504657#M188607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a script list from all fields you could use a loop like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to NoOfTables() - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ii = 1 to NoOfFields(TableName($(i)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vTableName = '[' &amp;amp; TableName($(i)) &amp;amp; ']';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldName = '[' &amp;amp; FieldName($(ii), TableName($(i))) &amp;amp; ']';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataStructure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(i) as TableNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableName($(i)) as TableName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoOfRows(TableName($(i))) as Rows,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(ii) as FieldNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldName($(ii), TableName($(i))) as FieldName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident $(vTableName) Where '$(vTableName)' &amp;lt;&amp;gt; 'DataStructure';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vFieldCounter = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you a prefix for numeric fields like # you could this to differentiate in this loop too else you will be the possible expressions anywhere defined, perhaps as Inline-Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 15:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Both-dynamic-dimensions-AND-expressions/m-p/504657#M188607</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-20T15:26:25Z</dc:date>
    </item>
  </channel>
</rss>

