<?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: how to use variable in dimension field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-use-variable-in-dimension-field/m-p/679897#M1066992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose you have a field called MyField. You can create a variable called vField and set it to &lt;STRONG&gt;MyField&lt;/STRONG&gt;. You can then create a calculated dimension: $(=vField). By changing the value of vField, you can switch different dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, you can accomplish the same thing by creating an island dimension and then picking the desired field. For instance, you could create an island field called AllFields which would contain the names of all fields you'd like to display. If a user selects a single value of AllFields, you can dynamically set that as the chart dimension by creating the following calculated dimension: $(=AllFields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what you cannot do, is dynamically define the &lt;SPAN style="text-decoration: underline;"&gt;number&lt;/SPAN&gt; of dimensions. You'd need to create one of these calculated dimensions for every dimension you'd like to display. For instance, if you want your chart to have 3 dimensions, you'd need 3 calculated fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you know in advance that you want only certain fields to be possible dimensions, you can just make them regular dimensions and enable/disable them conditionally on the Dimensions tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 19:24:30 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2014-09-11T19:24:30Z</dc:date>
    <item>
      <title>how to use variable in dimension field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-variable-in-dimension-field/m-p/679896#M1066991</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 am trying to create a Pivot Chart (Chart). So just thinking, If it is possible to use a variable to display dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to make it dynamic if any new field is added it should automatically be added to chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-variable-in-dimension-field/m-p/679896#M1066991</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2014-09-11T19:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to use variable in dimension field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-variable-in-dimension-field/m-p/679897#M1066992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose you have a field called MyField. You can create a variable called vField and set it to &lt;STRONG&gt;MyField&lt;/STRONG&gt;. You can then create a calculated dimension: $(=vField). By changing the value of vField, you can switch different dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, you can accomplish the same thing by creating an island dimension and then picking the desired field. For instance, you could create an island field called AllFields which would contain the names of all fields you'd like to display. If a user selects a single value of AllFields, you can dynamically set that as the chart dimension by creating the following calculated dimension: $(=AllFields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what you cannot do, is dynamically define the &lt;SPAN style="text-decoration: underline;"&gt;number&lt;/SPAN&gt; of dimensions. You'd need to create one of these calculated dimensions for every dimension you'd like to display. For instance, if you want your chart to have 3 dimensions, you'd need 3 calculated fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you know in advance that you want only certain fields to be possible dimensions, you can just make them regular dimensions and enable/disable them conditionally on the Dimensions tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-variable-in-dimension-field/m-p/679897#M1066992</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-09-11T19:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to use variable in dimension field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-variable-in-dimension-field/m-p/679898#M1066993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you have a simple example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add a line in INLINE file ... example:&lt;/P&gt;&lt;P&gt;Rusia, Bike, Yes o you change in the las record&amp;nbsp;&amp;nbsp;&amp;nbsp; Rusia, Bus, No by Rusia, Bus, Yes ... appear a new column in the graphic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-variable-in-dimension-field/m-p/679898#M1066993</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-09-11T20:55:50Z</dc:date>
    </item>
  </channel>
</rss>

