<?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 Adding formula created after Load statement to this statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-formula-created-after-Load-statement-to-this-statement/m-p/308749#M1182097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;P&gt;I have a simple problem, but I am struggling with it already 2 hours with poor result.&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;I have the following statement:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Group acct]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Group Acc Description]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Account&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[G/L acct long text]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;BusA&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Profit Ctr]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Tr.Prt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Dv&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Market&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Total HC]&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Amount_Total&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;External&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Amount_Ext&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Internal&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Amount_Int&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;FileBasename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;'_'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;)&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;FileBasename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;'_'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;)&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Country&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Basic_Data\*.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;is&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;I would like to redefine Amount_Total variable in the following way:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;If (Country = 'PL' , [Total HC] / 4 , [Total HC]) as Amount_Total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;and in similar way the wariables Amount_Ext and Amount_Int&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Could you please help me doing this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 20:47:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-16T20:47:42Z</dc:date>
    <item>
      <title>Adding formula created after Load statement to this statement</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-formula-created-after-Load-statement-to-this-statement/m-p/308749#M1182097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;P&gt;I have a simple problem, but I am struggling with it already 2 hours with poor result.&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;I have the following statement:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Group acct]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Group Acc Description]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Account&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[G/L acct long text]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;BusA&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Profit Ctr]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Tr.Prt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Dv&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Market&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Total HC]&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Amount_Total&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;External&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Amount_Ext&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Internal&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Amount_Int&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;FileBasename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;'_'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;)&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;FileBasename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;'_'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;)&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Country&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;[Basic_Data\*.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;is&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: gray; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;I would like to redefine Amount_Total variable in the following way:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;If (Country = 'PL' , [Total HC] / 4 , [Total HC]) as Amount_Total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;and in similar way the wariables Amount_Ext and Amount_Int&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Could you please help me doing this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-formula-created-after-Load-statement-to-this-statement/m-p/308749#M1182097</guid>
      <dc:creator />
      <dc:date>2011-12-16T20:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding formula created after Load statement to this statement</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-formula-created-after-Load-statement-to-this-statement/m-p/308750#M1182098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could either do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If (Country = 'PL' , [Total HC] / 4 , [Total HC]) as Amount_Total;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD [Group acct],&lt;/P&gt;&lt;P&gt; [Group Acc Description],&lt;/P&gt;&lt;P&gt; Account,&lt;/P&gt;&lt;P&gt; [G/L acct long text],&lt;/P&gt;&lt;P&gt; BusA,&lt;/P&gt;&lt;P&gt; [Profit Ctr],&lt;/P&gt;&lt;P&gt; Tr.Prt,&lt;/P&gt;&lt;P&gt; Dv,&lt;/P&gt;&lt;P&gt; Market,&lt;/P&gt;&lt;P&gt; [Total HC],&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; //remove the rename here&lt;/P&gt;&lt;P&gt; External as Amount_Ext,&lt;/P&gt;&lt;P&gt; Internal as Amount_Int,&lt;/P&gt;&lt;P&gt; subfield(FileBasename(),'_',1) as Month,&lt;/P&gt;&lt;P&gt; subfield(FileBasename(),'_',2) as Country&lt;/P&gt;&lt;P&gt; FROM&lt;/P&gt;&lt;P&gt; [Basic_Data\*.xlsx]&lt;/P&gt;&lt;P&gt; (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Group acct],&lt;/P&gt;&lt;P&gt; [Group Acc Description],&lt;/P&gt;&lt;P&gt; Account,&lt;/P&gt;&lt;P&gt; [G/L acct long text],&lt;/P&gt;&lt;P&gt; BusA,&lt;/P&gt;&lt;P&gt; [Profit Ctr],&lt;/P&gt;&lt;P&gt; Tr.Prt,&lt;/P&gt;&lt;P&gt; Dv,&lt;/P&gt;&lt;P&gt; Market,&lt;/P&gt;&lt;P&gt;If (subfield(FileBasename(),'_',2) = 'PL' , [Total HC] / 4 , [Total HC]) as Amount_Total&lt;/P&gt;&lt;P&gt;External as Amount_Ext,&lt;/P&gt;&lt;P&gt; Internal as Amount_Int,&lt;/P&gt;&lt;P&gt; subfield(FileBasename(),'_',1) as Month,&lt;/P&gt;&lt;P&gt; subfield(FileBasename(),'_',2) as Country&lt;/P&gt;&lt;P&gt; FROM&lt;/P&gt;&lt;P&gt; [Basic_Data\*.xlsx]&lt;/P&gt;&lt;P&gt; (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the first example you could drop field [Total HC] if you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 21:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-formula-created-after-Load-statement-to-this-statement/m-p/308750#M1182098</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T21:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding formula created after Load statement to this statement</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-formula-created-after-Load-statement-to-this-statement/m-p/308751#M1182099</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;thanks.. of course, now I see my mistake. Instead of using the formula in "if" statememnt I was using the name created in the same statement... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for this hint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Draszor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 07:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-formula-created-after-Load-statement-to-this-statement/m-p/308751#M1182099</guid>
      <dc:creator />
      <dc:date>2011-12-19T07:12:07Z</dc:date>
    </item>
  </channel>
</rss>

