<?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: Best Way to Setup This Code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493619#M555115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use dollar sign expansion to evaluate the contents of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if your variable is vFormula then use $(vFormula) as your expression. Note that if you want the expression to calculate over the dimension then do not use an = sign in the definition of the variable.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 18:33:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-14T18:33:44Z</dc:date>
    <item>
      <title>Best Way to Setup This Code</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493616#M555112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style=": ; color: #333333; font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #333333; font-size: 10pt;"&gt;I have some code that I'm using in one of my expressions in a straight table, and it works.&amp;nbsp; In one of the dimensions I am going to have to compare the value returned by the code from the expression below, to the quartile threshholds in another table to determine which quartile the value falls into.&amp;nbsp; There are 4 quartiles, so I am going to need to reference the value 4 times in the conditional statement in my dimension. I could paste this code into the conditional statement each time I am referencing the value, but that is going to make for one huge conditional statement, so I'd like to to find a cleaner way to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #333333; font-size: 10pt;"&gt; As far as I can tell, it will not allow me to call the expression in the dimension. I tried pasting this code into a variable and calling it from my straight table , but ever single row of the straight table ended up with the same value in the field (which was the aggregated total for all of the records combined).&amp;nbsp; It did not consider only the individual profit center's values. Is there a way to get the variable to treat each row of the straight table separately?&amp;nbsp; Or is there another way besides a variable that would work better? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #333333; font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;IMG __jive_id="45491" class="jive-image-thumbnail jive-image" height="377" onclick="" alt="Code.jpg" src="https://community.qlik.com/legacyfs/online/45491_Code.jpg" width="923" /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 12:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493616#M555112</guid>
      <dc:creator />
      <dc:date>2013-08-14T12:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Setup This Code</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493617#M555113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a variable should work as long as you don't put an = at the beginning of the expression in the variable. That will defer evaluation of the expression in the variable to where/when the variable is expanded in the expressions it's used in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 12:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493617#M555113</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-14T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Setup This Code</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493618#M555114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, Gysbert. I tried simply removing the equal sign in the variable, but it didn't work.&amp;nbsp; It ended up showing the if statement in the field instead of the result.&amp;nbsp;&amp;nbsp; I think I must not be understanding correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any way you can provide an example of this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 16:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493618#M555114</guid>
      <dc:creator />
      <dc:date>2013-08-14T16:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Setup This Code</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493619#M555115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use dollar sign expansion to evaluate the contents of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if your variable is vFormula then use $(vFormula) as your expression. Note that if you want the expression to calculate over the dimension then do not use an = sign in the definition of the variable.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 18:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493619#M555115</guid>
      <dc:creator />
      <dc:date>2013-08-14T18:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Setup This Code</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493620#M555116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to both of you.&amp;nbsp; It works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 18:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Setup-This-Code/m-p/493620#M555116</guid>
      <dc:creator />
      <dc:date>2013-08-14T18:52:59Z</dc:date>
    </item>
  </channel>
</rss>

