<?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 Referencing a variable chart label within the chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204160#M588529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As well as referencing a column name, you can also reference a column number, specifically because of this case.&lt;/P&gt;&lt;P&gt;Your first expression is column 1, then 2, then 3 etc.&lt;/P&gt;&lt;P&gt;So, if you have Sales as your first column, margin as you second, then your expression for GM% should be Column(2)/Column(1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Apr 2010 17:53:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-06T17:53:38Z</dc:date>
    <item>
      <title>Referencing a variable chart label within the chart</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204158#M588527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a chart that shows typical sales information: Sales, Margin and GM%. GM% is calculated as Margin / Sales. The Sales and Margin data can be for any year the user selects. They also have a series of If statements in their expression looking at other selections the user can make in the document. What I want to do is make the Sales and Margin column heading dynamic, showing the year selected, but also be able to reference the expression label to make the GM% definition relatively easy. For example, my Sales and Margin labels would look something like this:&lt;/P&gt;&lt;P&gt;=(SelectYear) &amp;amp; ' Sales'&lt;/P&gt;&lt;P&gt;=(SelectYear) &amp;amp; ' Margin'&lt;/P&gt;&lt;P&gt;But how do I reference these expressions in my GM% definition calculation? Before I added the year to the column heading I had:&lt;/P&gt;&lt;P&gt;Sales had the label = Sales&lt;/P&gt;&lt;P&gt;Margin had the label = Margin&lt;/P&gt;&lt;P&gt;And GM% had the definition = [Margin] / [Sales]&lt;/P&gt;&lt;P&gt;I don't want to have to repeat the definitions for Sales and Margin again in the GM% definition if I don't have to because they can be a little involved. Is there a way to have the column label be one value and the actual data another value to make referencing it within the chart easy?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 17:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204158#M588527</guid>
      <dc:creator />
      <dc:date>2010-04-06T17:13:18Z</dc:date>
    </item>
    <item>
      <title>Referencing a variable chart label within the chart</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204159#M588528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm not sure if I got you right but you can do something similar to label&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;='% Sales' &amp;amp; vYear&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;and refer it within an expression &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;[% Sales $(vYear)] / 100&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Now twist this code and change with your own variables. Is that what you are looking for?&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 17:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204159#M588528</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-04-06T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Referencing a variable chart label within the chart</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204160#M588529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As well as referencing a column name, you can also reference a column number, specifically because of this case.&lt;/P&gt;&lt;P&gt;Your first expression is column 1, then 2, then 3 etc.&lt;/P&gt;&lt;P&gt;So, if you have Sales as your first column, margin as you second, then your expression for GM% should be Column(2)/Column(1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 17:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204160#M588529</guid>
      <dc:creator />
      <dc:date>2010-04-06T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Referencing a variable chart label within the chart</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204161#M588530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it exactly! I figured there had to be a simple way to do it. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 18:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-a-variable-chart-label-within-the-chart/m-p/204161#M588530</guid>
      <dc:creator />
      <dc:date>2010-04-06T18:03:51Z</dc:date>
    </item>
  </channel>
</rss>

