<?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: Fragmenting long formula in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466639#M1152819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use SET here. LET will evaluate the expression which is not what you want in the script. So SET c = a+b;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2013 17:19:38 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-03-21T17:19:38Z</dc:date>
    <item>
      <title>Fragmenting long formula in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466634#M1152814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m implementing forward price calculation, which results in extremely long formula. To make a chart I can put it all into the extension. But this will be hard to modify and maintain it the further. Do you know if some elegant way exists to break this expression? How such formula can be split into components, but still be used dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;/Stanislav&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="35290" class="jive-image-thumbnail jive-image" onclick="" alt="formula.png" src="https://community.qlik.com/legacyfs/online/35290_formula.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 15:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466634#M1152814</guid>
      <dc:creator />
      <dc:date>2013-03-21T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fragmenting long formula in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466635#M1152815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could put parts of the expression in variables and then use the variables in your expression. A simple example:&lt;/P&gt;&lt;P&gt;variable vPart1: sum(Sales)&lt;/P&gt;&lt;P&gt;variable vPart2: sum(total Sales)&lt;/P&gt;&lt;P&gt;expression: $(vPart1) / $(vPart2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 16:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466635#M1152815</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-21T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fragmenting long formula in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466636#M1152816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can put the formula into one variable or split the formula and create several of variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 16:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466636#M1152816</guid>
      <dc:creator>MEllinghausen</dc:creator>
      <dc:date>2013-03-21T16:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fragmenting long formula in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466637#M1152817</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;You can store your expresion in a variable(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create the expression don't type the "=".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After, you can call this variable like $(&lt;EM&gt;&lt;STRONG&gt;VariableName&lt;/STRONG&gt;&lt;/EM&gt;) in the chart expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ej:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;($(&lt;EM&gt;A&lt;/EM&gt;) + $(&lt;EM&gt;B&lt;/EM&gt;)) / $(C)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 16:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466637#M1152817</guid>
      <dc:creator />
      <dc:date>2013-03-21T16:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fragmenting long formula in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466638#M1152818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Gysbert, Marcus, Ricardo, thanks a lot for your the responses! But I have problem’s figuring out how it can be defined (sorry for newbies/dummy questions). &lt;/SPAN&gt;&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;Let say I loaded a table with two number columns: 'a' and 'b'. Now I want to create formula as: c = a+b. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I guess I need to define in the script&lt;/SPAN&gt;&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;LET c = a+b;&lt;/SPAN&gt;&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;and then use an expression $(c) in the chart. But it doesn't work that way...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 17:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466638#M1152818</guid>
      <dc:creator />
      <dc:date>2013-03-21T17:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fragmenting long formula in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466639#M1152819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use SET here. LET will evaluate the expression which is not what you want in the script. So SET c = a+b;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 17:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fragmenting-long-formula-in-expression/m-p/466639#M1152819</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-21T17:19:38Z</dc:date>
    </item>
  </channel>
</rss>

