<?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 Get expressions (or set analysis) from Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497141#M185882</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;I'm trying to load alot of expressions into qlikview using Excel but I can't use them since QlikView does not recognize them as expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read this guide:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/" style="font-size: 10pt; line-height: 1.5em;"&gt;http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn't really help me since I have about 30 company IDs which have different expressions for the same KPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my Excel looks a bit like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;CompanyID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 696px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="696"&gt;&lt;P&gt;sum({&amp;lt;account={"&amp;gt;=3000&amp;lt;=3999"} &amp;gt;} amount)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sum({&amp;lt;account={"&amp;gt;=4000&amp;lt;=4999"}&amp;gt;} amount)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 285px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="285"&gt;sum({&amp;lt;account={5700}&amp;gt;} amount)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any easy way to import these whole expressions or just the set analysis and use in Qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 09:25:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-01T09:25:39Z</dc:date>
    <item>
      <title>Get expressions (or set analysis) from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497141#M185882</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;I'm trying to load alot of expressions into qlikview using Excel but I can't use them since QlikView does not recognize them as expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read this guide:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/" style="font-size: 10pt; line-height: 1.5em;"&gt;http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn't really help me since I have about 30 company IDs which have different expressions for the same KPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my Excel looks a bit like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;CompanyID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 696px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="696"&gt;&lt;P&gt;sum({&amp;lt;account={"&amp;gt;=3000&amp;lt;=3999"} &amp;gt;} amount)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sum({&amp;lt;account={"&amp;gt;=4000&amp;lt;=4999"}&amp;gt;} amount)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 285px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="285"&gt;sum({&amp;lt;account={5700}&amp;gt;} amount)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any easy way to import these whole expressions or just the set analysis and use in Qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497141#M185882</guid>
      <dc:creator />
      <dc:date>2013-10-01T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get expressions (or set analysis) from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497142#M185883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do something similar using Excel. Here's how I do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a tab to your report script to load the expressions into a table. You can use the Field Data.. File Wizard to help you select/format the input. It'll end up looking something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelTable:&lt;/P&gt;&lt;P&gt;Load num(%CompanyID,'##0') as %CompanyID,&lt;/P&gt;&lt;P&gt;purgechar(%XLExpression,'"') as %XLExpression&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\DataSources\QVD\expression_sheet.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is .... etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the use of purgechar because my expressions all begin with equals (=) and Excel requires expressions that start with equals to be enclosed in quotes (") otherwise it tries to execute them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your report, you can use the loaded expressions in your chart expressions. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;$(=%XLExpression)&amp;gt;} Sales)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course this particular form requires a selection in the either the %CompanyID or %XLExpression fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 16:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497142#M185883</guid>
      <dc:creator />
      <dc:date>2013-10-01T16:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get expressions (or set analysis) from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497143#M185884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Importing the expressions into a field is trivial. But you won't be able to use companyid as dimension and the value of a field as expression. You'll have to use the pick function. See &lt;A _jive_internal="true" href="https://community.qlik.com/message/286881#286881" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;Expressions in Fields&lt;/A&gt; and &lt;A _jive_internal="true" href="https://community.qlik.com/message/245960#245960" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;AVG and SUM functions reside on the same expression?&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 16:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497143#M185884</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-01T16:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get expressions (or set analysis) from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497144#M185885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to mention that in our particular case, we don't put the whole expression into Excel, only the set analysis part. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 17:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-expressions-or-set-analysis-from-Excel/m-p/497144#M185885</guid>
      <dc:creator />
      <dc:date>2013-10-01T17:05:19Z</dc:date>
    </item>
  </channel>
</rss>

