<?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: Re: variable as dimension in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493232#M1142888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it makes sense now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 12:27:27 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2013-09-06T12:27:27Z</dc:date>
    <item>
      <title>variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493227#M1142883</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 hope I can explain this properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table chart, which must report on 3 things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8pt;"&gt;Number of Accounts Opened&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8pt;"&gt;Number of Accounts Closed&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8pt;"&gt;Number of Accounts Written Off&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the expressions I use to show the numbers for the current month:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8pt;"&gt;count({&amp;lt;[Account open month]={$(vCurrentMonth)},[Account open year]={$(vCurrentYear)}&amp;gt;}[Account no])&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8pt;"&gt;count({&amp;lt;[Month of status change]={$(vCurrentMonth)},[Year of status change]={$(vCurrentYear)},[Account status code]={'C'}&amp;gt;}[Account no])&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 8pt;"&gt;count({&amp;lt;[Month of status change]={$(vCurrentMonth)},[Year of status change]={$(vCurrentYear)},[Account status code]={'Z'}&amp;gt;}[Account no])&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see Image1 - this will then show me a table showing the book growth for September 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to show the book growth PER MONTH, for the current year (or for the last 6 months is also okay).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to use a variable as a dimension in the chart, and the expressions must all reference that. So that the chart eventually looks like Image 2. Of course the figures in Image 2 are totally wrong because I am using [Account open month] as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need more info. Note that I am using Personal Edition so cannot open your examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 11:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493227#M1142883</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-06T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493228#M1142884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried like this?&lt;/P&gt;&lt;P&gt;Pivot table, first dimension Account Status and second as Month. Drag the Month dimension on top&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 11:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493228#M1142884</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-06T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493229#M1142885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That won't work. The month used in Expression 1 is a different field than those used in Expressions 2 and 3. Please check the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also can't use Status as a dimension - this is not the point of the chart... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 11:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493229#M1142885</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-06T11:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493230#M1142886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share your sample data in excel mentioning the desired output there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 11:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493230#M1142886</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-06T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493231#M1142887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considering working with ValueList()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493231#M1142887</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2013-09-06T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493232#M1142888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it makes sense now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493232#M1142888</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-06T12:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493233#M1142889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not familiar with that but will look into it now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493233#M1142889</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-06T12:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493234#M1142890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay I think this might be the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now have a calculated dimension that looks like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;=valuelist(vCurrentMonthMin6,vCurrentMonthMin5,vCurrentMonthMin4,vCurrentMonthMin3,vCurrentMonthMin2,vCurrentMonthMin1,vCurrentMonth)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables are equal to Sep, Aug, Jul, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now my chart looks like image 3 (attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what do I do with my expressions - currently they look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;count({&amp;lt;[Account open month]={$(&lt;SPAN style="color: #ff00ff;"&gt;vCurrentMonth&lt;/SPAN&gt;)},[Account open year]={$(&lt;SPAN style="color: #ff00ff;"&gt;vCurrentYear&lt;/SPAN&gt;)}&amp;gt;}[A+ Status (A/L/C)])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In stead of using the vCurrentMonth variable in the expression, I want it to use the month of the column (the dimension):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10.909090995788574px;"&gt;&lt;STRONG&gt;count({&amp;lt;[Account open month]={$(&lt;SPAN style="color: #ff00ff;"&gt;the header of this column&lt;/SPAN&gt;)},[Account open year]={$(&lt;SPAN style="color: #ff00ff;"&gt;vCurrentYear&lt;/SPAN&gt;)}&amp;gt;}[A+ Status (A/L/C)])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493234#M1142890</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-06T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493235#M1142891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess this could be handled better with a GENERIC load. Have to work on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493235#M1142891</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-06T12:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: variable as dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493236#M1142892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate all help - but please note that I do not want to follow an approach that changes my Load. This example is very basic, but will in fact be used in a pretty complex module, so I want to do this in the chart itself. This is not worth changing the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just don't want you spending time on something that I cannot use.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-as-dimension-in-chart/m-p/493236#M1142892</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-09-06T12:59:53Z</dc:date>
    </item>
  </channel>
</rss>

