<?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 AW:Re: Set Analysis in Expression (Chart)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187443#M51102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly what I was looking for. I was just a bit struggling with the spanish variable names inside your script. So I have just made an 'international' version of if just in case anybody in the future is facing the same problem.&lt;/P&gt;&lt;P&gt;Expressions:&lt;BR /&gt;LOAD Variable,&lt;BR /&gt; Expression&lt;BR /&gt;FROM&lt;BR /&gt;C:\Temp\TestFormula.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Table1);&lt;BR /&gt;Let vNumberOfRows = NoOfRows('Expressions');&lt;BR /&gt;For vI = 0 to (vNumberOfRows - 1)&lt;BR /&gt; Let vVariable_Name = Peek('Variable',vI,'Expression');&lt;BR /&gt; Let [$(vVariable_Name)] = Peek('Expression',vI,'Expression');&lt;BR /&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 08:13:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-16T08:13:04Z</dc:date>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187439#M51098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use set analysis in an expression for a chart? I have many objects which are based on the same formular. If I need to change the formular I would have to change the formular in every single object.&lt;/P&gt;&lt;P&gt;To avoid this I would like to create an inline table which contains all formulars which I need. Now I can do this as it has been done in the KPI example which you can find &lt;A href="https://community.qlik.com/forums/p/25527/97458.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 10:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187439#M51098</guid>
      <dc:creator />
      <dc:date>2010-11-15T10:27:53Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187440#M51099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you're referring to the problem that Set Analysis uses single and double quotes which can make importing the expressions more difficult. I've had success loading expressions from an Excel that contains all my expressions. The expression looks exactly as it would look in QlikView without having the replace double or single quotes with chr(34) or chr(39).&lt;/P&gt;&lt;P&gt;For example, I have an excel with 2 columns (Variable and Expression)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;BR /&gt; vSales&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;BR /&gt;'sum({$&amp;lt;Year={$(=max(Year))},[Premisas y Conceptos Key] = {'$(=[Ingreso Key])'}, [Premisas y Conceptos Texto]=,FlagKey = {'$(=[Ingreso Cubo Key])'}, FlagText=,[Version Key] = , [Version Texto]={'Real'},[Unidad de Negocio Texto]={$(vUniNegFiltro)},[Unidad de Negocio Key]=&amp;gt;} Importe)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then in the script, I turn every row of the Excel into a variable so that I can use $-expansion in the charts and not use macros.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Script Example:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expresiones:&lt;BR /&gt;LOAD Variable,&lt;BR /&gt; Expresion&lt;BR /&gt;FROM&lt;BR /&gt;Expresiones.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vNroRegistros = NoOfRows('Expresiones');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For vI = 0 to (vNroRegistros - 1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vNombre_Variable = Peek('Variable',vI,'Expresiones');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let [$(vNombre_Variable)] = Peek('Expresion',vI,'Expresiones');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then in the expression of the chart I just put&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(vSales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I hope that helps. Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 18:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187440#M51099</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-15T18:20:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187441#M51100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karl,&lt;/P&gt;&lt;P&gt;Very helpful.&lt;/P&gt;&lt;P&gt;is the single quote in front of your expression intentional?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 18:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187441#M51100</guid>
      <dc:creator />
      <dc:date>2010-11-15T18:56:01Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187442#M51101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's to make sure Excel doesn't consider the formula an Excel formula. In newer versions of Excel it is automatic and it isn't actually part of the data. QlikView will read the cell starting with sum(... without the single quote.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 19:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187442#M51101</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-15T19:39:19Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187443#M51102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly what I was looking for. I was just a bit struggling with the spanish variable names inside your script. So I have just made an 'international' version of if just in case anybody in the future is facing the same problem.&lt;/P&gt;&lt;P&gt;Expressions:&lt;BR /&gt;LOAD Variable,&lt;BR /&gt; Expression&lt;BR /&gt;FROM&lt;BR /&gt;C:\Temp\TestFormula.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Table1);&lt;BR /&gt;Let vNumberOfRows = NoOfRows('Expressions');&lt;BR /&gt;For vI = 0 to (vNumberOfRows - 1)&lt;BR /&gt; Let vVariable_Name = Peek('Variable',vI,'Expression');&lt;BR /&gt; Let [$(vVariable_Name)] = Peek('Expression',vI,'Expression');&lt;BR /&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 08:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187443#M51102</guid>
      <dc:creator />
      <dc:date>2010-11-16T08:13:04Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187444#M51103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karl,&lt;/P&gt;&lt;P&gt;Is there a way to drop to unneeded variables after completing the load?&lt;/P&gt;&lt;P&gt;I mean the variables -&amp;gt; vNombre_Variable -&amp;gt; vl -&amp;gt; vNroRegistros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 16:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187444#M51103</guid>
      <dc:creator />
      <dc:date>2010-11-17T16:36:53Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187445#M51104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard,&lt;/P&gt;&lt;P&gt;Post another post to see if there is another answer because I think this can only be done with a marco:&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;Sub Delete_Variable&lt;BR /&gt; ActiveDocument.RemoveVariable "vName"End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 17:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187445#M51104</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-17T17:04:08Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187446#M51105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Karl,&lt;/P&gt;&lt;P&gt;I think I'll live with it.&lt;/P&gt;&lt;P&gt;I'm try to stay away from macros.&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 17:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187446#M51105</guid>
      <dc:creator />
      <dc:date>2010-11-17T17:27:23Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187447#M51106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you do like&lt;/P&gt;&lt;P&gt;Set vName=;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 19:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187447#M51106</guid>
      <dc:creator />
      <dc:date>2011-03-16T19:43:30Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187448#M51107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeap, you are correct, Johan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 04:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187448#M51107</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-03-18T04:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Expression (Chart)?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187449#M51108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karl is it possible to use this with diferent expressions, without using uncountable if clauses? I'm struggling with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 14:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Expression-Chart/m-p/187449#M51108</guid>
      <dc:creator>andrefpc</dc:creator>
      <dc:date>2013-08-02T14:07:46Z</dc:date>
    </item>
  </channel>
</rss>

