<?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: Formula/Variable in Load*Inline in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636219#M1094067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Jarl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you used a dollar expansion when you use it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2014 13:34:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-16T13:34:06Z</dc:date>
    <item>
      <title>Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636218#M1094066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to load a formula (or variable containing a formula) in a load*inline.&lt;/P&gt;&lt;P&gt;As a simple example I got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Variable_name, sum&lt;/P&gt;&lt;P&gt;x, sum({&amp;lt;ProdType={'PS-E'}&amp;gt;}ActQuantity)&lt;/P&gt;&lt;P&gt;y, 100&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make a table box (or a graph) it does not return me the actual value for the sum just the text.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636218#M1094066</guid>
      <dc:creator />
      <dc:date>2014-05-16T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636219#M1094067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Jarl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you used a dollar expansion when you use it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636219#M1094067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-16T13:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636220#M1094068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to create a variable with a formula use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET varX = SUM({&amp;lt;ProdType={'PS-E'}&amp;gt;}ActQuantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636220#M1094068</guid>
      <dc:creator />
      <dc:date>2014-05-16T13:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636221#M1094069</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;The inline statement looks OK to me, I suggest that you either explain how you are using these fields, or better yet, post a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636221#M1094069</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-16T13:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636222#M1094070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felim, Jonathan and Bill. Thank you for your response and I am afraid I haven't figured it out yet.&lt;/P&gt;&lt;P&gt;I am trying to create a new variable for a dimension on a bar graph which only contains a few restricted sums.&lt;/P&gt;&lt;P&gt;I have added a picture of a table box on the left with the Load Inline, and the actual calculation.&lt;/P&gt;&lt;P&gt;So what I expected to see is instead of the text: " SUM ... i want to see the number 1044..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried using a dollar sign so&amp;nbsp; $(SUM({&amp;lt;ProdType={'Meat'}&amp;gt;}ActQuantity))&amp;nbsp; but it returns a null value &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="picture.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/58978_picture.png" style="width: 620px; height: 117px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636222#M1094070</guid>
      <dc:creator />
      <dc:date>2014-05-16T13:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636223#M1094071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you mean the caption or the column header, but you should just use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUM({&amp;lt;ProdType={'Meat'}&amp;gt;} ActQuantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636223#M1094071</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-16T13:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636224#M1094072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the caption doesnt really matter. So I added the sign as well as in my load inline code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;load * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;Variable_name, sum&lt;BR /&gt;x, =SUM({&amp;lt;ProdType={'Meat'}&amp;gt;} ActQuantity)&lt;BR /&gt;y, 100&lt;BR /&gt;] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;IMG alt="picture.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/58980_picture.png" style="width: 620px; height: 60px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also if I added a dollar sign infront of it:&amp;nbsp; $(=SUM({&amp;lt;ProdType={'Meat'}&amp;gt;} ActQuantity)). It gave me a null value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636224#M1094072</guid>
      <dc:creator />
      <dc:date>2014-05-16T14:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636225#M1094073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you create the variable mentioned above use =$(varX)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636225#M1094073</guid>
      <dc:creator />
      <dc:date>2014-05-16T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636226#M1094074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;So I got:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; set &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varX&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = SUM({&amp;lt;ProdType={'Meat'}&amp;gt;} ActQuantity);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;Variable_name, sum&lt;BR /&gt;x, =$(varX)&lt;BR /&gt;y, 100&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;And it still give me the text instead of the actual value:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="picture.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/58986_picture.png" style="width: 620px; height: 57px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Weird right.&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636226#M1094074</guid>
      <dc:creator />
      <dc:date>2014-05-16T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636227#M1094075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//Test Load for expression values &lt;/P&gt;&lt;P&gt;test1:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;ProdType, ActQuantity&lt;/P&gt;&lt;P&gt;PS-E, 100&lt;/P&gt;&lt;P&gt;PS-E, 100&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Varaible Load&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;ID, Variable_name, sum&lt;/P&gt;&lt;P&gt;1, x,sum({&amp;lt;ProdType={'PS-E'}&amp;gt;}ActQuantity)&lt;/P&gt;&lt;P&gt;2, y, 100&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Concatenating the expressions&lt;/P&gt;&lt;P&gt;ConcatExpressions:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD Concat(sum, ',', ID) As ConcatExpression&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident test;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Variable used in Expression&lt;/P&gt;&lt;P&gt;Let vConcatExpressions = 'Pick(ID,' &amp;amp; Peek('ConcatExpression') &amp;amp; ')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a straight table chart, Have dimension as Variable_name and expression as $(vConcatExpressions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps and works for your use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636227#M1094075</guid>
      <dc:creator />
      <dc:date>2014-05-16T14:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636228#M1094076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Jarl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure you need to use dollar expansion in the expression in your Chart Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a test try putting the below in as the expression in a text object.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&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; =$(=1+1)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I often find it best to test syntax in a simple text box.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do note&lt;/STRONG&gt; the second = is needed.&amp;nbsp; If in the text object you remove this second = you will see that breaks it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636228#M1094076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-16T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636229#M1094077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your help! Got a big smile on my face, great way to start the long weekend. Got into Qlikview last week and it is challenging but I love it! The community is also great. Keep up the good work Bill, Sudheer, Felim and Jonathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636229#M1094077</guid>
      <dc:creator />
      <dc:date>2014-05-16T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Formula/Variable in Load*Inline</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636230#M1094078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the compliment and for marking the helpful and correct answers for other members. Have a great weekend. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Sara &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 17:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Variable-in-Load-Inline/m-p/636230#M1094078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-16T17:35:36Z</dc:date>
    </item>
  </channel>
</rss>

