<?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: Variable as a Dimension ( or Variable Dimension) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689730#M667685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=Rango4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The = sign means evaluate the next expression, without text is assumed&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 08:43:23 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2014-10-24T08:43:23Z</dc:date>
    <item>
      <title>Variable as a Dimension ( or Variable Dimension)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689728#M667683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm struggling trying to know why this happens:&lt;/P&gt;&lt;P&gt;Dimension (Option A): =if(SupContrato &amp;gt; 26000 , SupContrato, null())&lt;/P&gt;&lt;P&gt;Dimension (Option B): =if(SupContrato &amp;gt; $(Rango4), SupContrato, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Option A works perfectly: it lists only the contracts which have &lt;/SPAN&gt;a surface higher than 26.000sqm&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Option B: I change the 26000 for a variable that I declare within the script: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Set&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;Rango4&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 4*(max(SupContrato)/5); but it does not work because it gets null for everything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Many thanks for any help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689728#M667683</guid>
      <dc:creator />
      <dc:date>2014-10-24T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as a Dimension ( or Variable Dimension)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689729#M667684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You defined Rango4 by set, so there is a formula, not a value in.&lt;/P&gt;&lt;P&gt;Therefor you need to calculate the variable in the definition&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;Dimension (Option B): =if(SupContrato &amp;gt; $(=Rango4), SupContrato, null())&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689729#M667684</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-10-24T08:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as a Dimension ( or Variable Dimension)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689730#M667685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=Rango4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The = sign means evaluate the next expression, without text is assumed&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689730#M667685</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-10-24T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as a Dimension ( or Variable Dimension)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689731#M667686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you want that variable calculated globally, not in place when defining the dimension. Put an extra equal sign in front of it:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Set&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;Rango4&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; ==4*(max(SupContrato)/5);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will store the equal sign in the variable definition, so it will be calculated like any other variable which begins with =&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689731#M667686</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2014-10-24T08:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as a Dimension ( or Variable Dimension)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689732#M667687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martin! But it does not work neither, I have try that already.&lt;/P&gt;&lt;P&gt;I have also tried to make a LET instead of a Set, but nothing.&lt;/P&gt;&lt;P&gt;Also to declare another variable: Rango4Bis which calls the variable Rango4...nothing neither.&lt;/P&gt;&lt;P&gt;Also to insert the formula of the variable within the dimension instead of the variable...nothing&lt;/P&gt;&lt;P&gt;The only thing that works is to put a figure, not a formula or variable.&lt;/P&gt;&lt;P&gt;It does not make sense to me...any other suggestion?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;BQ.&lt;/P&gt;&lt;P&gt;Borja Quintero.&lt;/P&gt;&lt;P&gt;CBRE Spain. GCS.&lt;/P&gt;&lt;P&gt;Architect.&lt;/P&gt;&lt;P&gt;+34670899622&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Martin Pohl &lt;/P&gt;&lt;P&gt;Enviado: Friday, October 24, 2014 10:43 AM&lt;/P&gt;&lt;P&gt;Para: Quintero, Borja @ Madrid&lt;/P&gt;&lt;P&gt;Asunto: Re:  - Variable as a Dimension ( or Variable Dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable as a Dimension ( or Variable Dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Martin Pohl&amp;lt;http://community.qlik.com/people/MartinPohl?et=watches.email.thread&amp;gt; in Scripting - View the full discussion&amp;lt;http://community.qlik.com/message/640918?et=watches.email.thread#640918&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689732#M667687</guid>
      <dc:creator />
      <dc:date>2014-10-24T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as a Dimension ( or Variable Dimension)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689733#M667688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to check the value of the variable create a straight table chart with the formula from the dimension and check the result by mouse over&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/69611_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-a-Dimension-or-Variable-Dimension/m-p/689733#M667688</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-10-24T08:55:10Z</dc:date>
    </item>
  </channel>
</rss>

