<?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: Using Variable as a Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255063#M863882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be slow, but perhaps you could do it something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-sum(aggr($(vRate)&amp;lt;=.20,Stores))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or perhaps more clearly though less concise:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;count(distinct aggr(if($(vRate)&amp;lt;=.20,Stores),Stores))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though with only TransID as a dimension in your inner aggrs, I'm not sure that would work. Perhaps if Stores was added there as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2016 19:06:17 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2016-12-30T19:06:17Z</dc:date>
    <item>
      <title>Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255059#M863878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I have a variable/set analysis problem that i have tried to resolve for the last couple of day without much success. I hope this forum could point me to the right direction.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I have a variable, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt; font-family: Calibri;"&gt;vRate =&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;[RegionA]&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;[TransID]&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;))*0.21) +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;[RegionB]&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;[TransID]&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;))*0.25 )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;Complete&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;"&amp;gt;0"&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;[TransID]&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt; )+&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;Review&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;"&amp;gt;0"&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;[TransID]&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt; )+&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I&amp;nbsp; want to select, and ultimately count stores where $(vRate) &amp;lt;= x%&amp;nbsp; on table 1 and where&amp;nbsp;&amp;nbsp; $(vRate) &amp;gt;=y% on table 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Something like&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="line-height: 115%; color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: red; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;{&lt;SPAN style="color: #000000;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;}&amp;gt;}Stores) but its throwing errors at the..&lt;STRONG style="color: #ff0000;"&gt;{&lt;/STRONG&gt;3}&amp;gt;..) &lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;mark. What could I be doing wrong? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; color: black; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I also tried to load the variable as a script using both LET and SET&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt; font-family: Calibri;"&gt;vRate =&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;(…);&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-family: Courier New;"&gt;LOAD&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style="line-height: 115%; color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; font-family: Courier New;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;[Rate] &lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;on QVW without success.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&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-Variable-as-a-Dimension/m-p/1255059#M863878</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255060#M863879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 16:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255060#M863879</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-30T16:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255061#M863880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't share a sample, however, the variable, vRate works fine. The expression &lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: red; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;{&lt;SPAN style="color: #000000;"&gt;y&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt;"&gt;}&amp;gt;}Stores) &lt;/SPAN&gt;is what is generating the error. I'm not sure if there's a better way to write the expression, or how to effectively make the variable behave as a [field] or dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 17:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255061#M863880</guid>
      <dc:creator />
      <dc:date>2016-12-30T17:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255062#M863881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only use field names on the LHS of the set modifier. Since vRate is a calculation, it won't work here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 18:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255062#M863881</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-30T18:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255063#M863882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be slow, but perhaps you could do it something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-sum(aggr($(vRate)&amp;lt;=.20,Stores))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or perhaps more clearly though less concise:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;count(distinct aggr(if($(vRate)&amp;lt;=.20,Stores),Stores))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though with only TransID as a dimension in your inner aggrs, I'm not sure that would work. Perhaps if Stores was added there as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 19:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255063#M863882</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-12-30T19:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255064#M863883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have related question for a bar chart for the same project.. It's using the Region as Dimension and $(vtRate) as an expression. All the bars need to be visible even after a selection, i.e., disable the chart from being dynamic, other than greying out the inactive bars. I used the following expression, &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; )) &lt;/SPAN&gt;but that doesn't seem to work.. the chart still acts dynamically. Is there a solution around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2016 03:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255064#M863883</guid>
      <dc:creator />
      <dc:date>2016-12-31T03:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255065#M863884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;({1 &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; ))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2016 10:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255065#M863884</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-12-31T10:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255066#M863885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to ignore selection in Region within the expression you have for vRate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Region&amp;gt;} &lt;/SPAN&gt;Aggr(Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;Region&amp;gt;}&lt;/STRONG&gt; DISTINCT [RegionA]), [TransID]))*0.21) +&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;Region&amp;gt;}&lt;/STRONG&gt; Aggr(Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;Region&amp;gt;} &lt;/STRONG&gt;DISTINCT [RegionB]), [TransID]))*0.25)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({$&amp;lt;Complete= {"&amp;gt;0"}, &lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Region&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;gt;} DISTINCT [TransID] ) +&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({$&amp;lt;Review= {"&amp;gt;0"}, &lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Region&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;gt;} DISTINCT [TransID] ) +&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2016 12:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255066#M863885</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-31T12:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255067#M863886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does it, but the numbers are a little inflated.. from mostly single to triple digits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jan 2017 14:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255067#M863886</guid>
      <dc:creator />
      <dc:date>2017-01-01T14:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255068#M863887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added parenthesis to enclose the numerator expression,&amp;nbsp; works perfect. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 06:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255068#M863887</guid>
      <dc:creator />
      <dc:date>2017-01-02T06:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255069#M863888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 13:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-as-a-Dimension/m-p/1255069#M863888</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-02T13:23:26Z</dc:date>
    </item>
  </channel>
</rss>

