<?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 Using a Variable as Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-as-Dimension/m-p/1328067#M826793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard which is updated annually. This dashboard has 5 tabs with 2-4 charts each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensions used are as follows (years will be updated per year):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product Category&lt;/P&gt;&lt;P&gt;Sub Product Category&lt;/P&gt;&lt;P&gt;2015 Revenue&lt;/P&gt;&lt;P&gt;2016 Revenue&lt;/P&gt;&lt;P&gt;2015 Cost&lt;/P&gt;&lt;P&gt;2016 Cost&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data comes from an Excel template with no date column, and the file is provided by an external vendor annually. I would like to find out if there is a way to update all my calculations/chart dimensions quickly, instead of opening each chart up and changing the dimension/expression values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found the "Expression Overview" function which allows me to do a "Find/Replace" across the entire dashboard, which I have tried as a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, I have tried to create variables for each dimension (e.g vCurrYearRevenue as =[2016 Revenue]), which I am thinking of putting these variables directly into each chart as a dimension, or use as expression. This will allow me to simply go into the Variable Overview editor and change the variable definition on a one-time basis annually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am facing difficulty when trying to use the variable as a dimension in the chart. For example, I have a bar chart, and I'm planning to use &lt;EM&gt;vProductCategory&lt;/EM&gt; as the dimension. However, this is not working no matter what combination I've put into the Calculated Dimension section. I've tried &lt;EM&gt;vProductCategory, $(vProductCategory), =$(='['&amp;amp;vProductCategory&amp;amp;']')&lt;/EM&gt; all to no avail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Using a Variable as Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-as-Dimension/m-p/1328067#M826793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard which is updated annually. This dashboard has 5 tabs with 2-4 charts each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensions used are as follows (years will be updated per year):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product Category&lt;/P&gt;&lt;P&gt;Sub Product Category&lt;/P&gt;&lt;P&gt;2015 Revenue&lt;/P&gt;&lt;P&gt;2016 Revenue&lt;/P&gt;&lt;P&gt;2015 Cost&lt;/P&gt;&lt;P&gt;2016 Cost&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data comes from an Excel template with no date column, and the file is provided by an external vendor annually. I would like to find out if there is a way to update all my calculations/chart dimensions quickly, instead of opening each chart up and changing the dimension/expression values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found the "Expression Overview" function which allows me to do a "Find/Replace" across the entire dashboard, which I have tried as a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, I have tried to create variables for each dimension (e.g vCurrYearRevenue as =[2016 Revenue]), which I am thinking of putting these variables directly into each chart as a dimension, or use as expression. This will allow me to simply go into the Variable Overview editor and change the variable definition on a one-time basis annually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am facing difficulty when trying to use the variable as a dimension in the chart. For example, I have a bar chart, and I'm planning to use &lt;EM&gt;vProductCategory&lt;/EM&gt; as the dimension. However, this is not working no matter what combination I've put into the Calculated Dimension section. I've tried &lt;EM&gt;vProductCategory, $(vProductCategory), =$(='['&amp;amp;vProductCategory&amp;amp;']')&lt;/EM&gt; all to no avail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-as-Dimension/m-p/1328067#M826793</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable as Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-as-Dimension/m-p/1328068#M826794</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;For example (look attached file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field(dimension): &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ProductCategory&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Variable: &lt;STRONG&gt;ProductCategory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;=$(vProductCategory)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-as-Dimension/m-p/1328068#M826794</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-07-05T07:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable as Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-as-Dimension/m-p/1328069#M826795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I figured out that I was configuring my Variable a "=ProductCategory". Removing the "=" solved the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 09:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-as-Dimension/m-p/1328069#M826795</guid>
      <dc:creator />
      <dc:date>2017-07-05T09:00:20Z</dc:date>
    </item>
  </channel>
</rss>

