<?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 define dimension for a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-define-dimension-for-a-variable/m-p/735281#M1080201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 17:57:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-08T17:57:47Z</dc:date>
    <item>
      <title>How to define dimension for a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-dimension-for-a-variable/m-p/735279#M1080199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new and need some help understanding the behavior of a variable in a straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works as expected when it is used directly in my chart (return a 'Y' or 'N' correctly for that row in the cart): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =If(Mod([Ask Amount],25) = 0, 'Y','N')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;However, I attempted to create a variable for this expression, &lt;STRONG&gt;v25 = If(Mod([Ask Amount],25) = 0, 'Y','N')&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; , so could reference this expression in a few different charts, and it when I do so, it returns 'N'&amp;nbsp; for all rows.&amp;nbsp; I believe this is happening because it is calculating based on the sum of all rows, rather than by the dimension I have selected in my chart.&amp;nbsp; Is there a way to embed a dimension in this expressions so I can use this as a variable? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Grace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-dimension-for-a-variable/m-p/735279#M1080199</guid>
      <dc:creator />
      <dc:date>2014-07-08T17:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to define dimension for a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-dimension-for-a-variable/m-p/735280#M1080200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you define the variable &lt;STRONG&gt;without&lt;/STRONG&gt; an "=" in the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the variable in a chart expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(v25)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-dimension-for-a-variable/m-p/735280#M1080200</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-08T17:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to define dimension for a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-dimension-for-a-variable/m-p/735281#M1080201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-dimension-for-a-variable/m-p/735281#M1080201</guid>
      <dc:creator />
      <dc:date>2014-07-08T17:57:47Z</dc:date>
    </item>
  </channel>
</rss>

