<?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: Syntax issues when referencing a field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061369#M355267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have missed some curly brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({&amp;lt; CATEGORY_VALUE={'Name'} &amp;gt;} QUOTES)&amp;nbsp; /&amp;nbsp; SUM(TOTAL &amp;lt;CATEGORY&amp;gt; QUOTES)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 17:33:51 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2016-03-01T17:33:51Z</dc:date>
    <item>
      <title>Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061366#M355264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table in Qlik and I'm trying to add a new expression that looks at the sum of quotes where category_value = 'Name' (a field specified) divided by sum of total quotes at the category level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble getting the syntax correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14568418297535761 jive_text_macro" jivemacro_uid="_14568418297535761"&gt;
&lt;P&gt;(SUM(&amp;lt;[CATEGORY_VALUE]='Name'&amp;gt;QUOTES)/(SUM(TOTAL&amp;lt;CATEGORY&amp;gt;QUOTES)))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried different variations - adding in { } and rearranging [ ] and &amp;lt; &amp;gt; to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATEGORY_VALUE and CATEGORY are both dimensions in the pivot table, and Quotes is a column expression. If I take out the ='NAME' portion of the code, it is correct, which makes me think I'm doing something wrong when referencing the field value itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 14:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061366#M355264</guid>
      <dc:creator />
      <dc:date>2016-03-01T14:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061367#M355265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;The 'Name' string part should be between curly braces, like {'Name'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;And the entire set analysis specification should be put between braces as well. Try with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;( SUM({&amp;lt;[CATEGORY_VALUE]={'Name'}&amp;gt;} QUOTES)/(SUM(TOTAL &amp;lt;CATEGORY&amp;gt; QUOTES)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;(Yes indeed, a lot of punctuation marks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061367#M355265</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-01T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061368#M355266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;May be you need this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-weight: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;&lt;STRONG&gt;Sum({&amp;lt;CATEGORY_VALUE = {'Name'}&amp;gt;} QUOTES)/Sum(QUOTES)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-weight: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-weight: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-weight: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-weight: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;Sum({&amp;lt;CATEGORY_VALUE = {'Name'}&amp;gt;} QUOTES)/Sum(TOTAL &amp;lt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;CATEGORY_VALUE &lt;/STRONG&gt;&amp;gt; QUOTES)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-weight: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-weight: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;&lt;STRONG style=": ; color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum(QUOTES)/Sum(TOTAL &amp;lt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;CATEGORY_VALUE &lt;/STRONG&gt;&amp;gt; QUOTES)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061368#M355266</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061369#M355267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have missed some curly brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({&amp;lt; CATEGORY_VALUE={'Name'} &amp;gt;} QUOTES)&amp;nbsp; /&amp;nbsp; SUM(TOTAL &amp;lt;CATEGORY&amp;gt; QUOTES)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061369#M355267</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-03-01T17:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061370#M355268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that (see below) and still have a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14568536928044093" jivemacro_uid="_14568536928044093"&gt;
&lt;P&gt;(SUM(&amp;lt;[CATEGORY_VALUE]={'GAINWeb'}&amp;gt;QUOTES)/(SUM(TOTAL&amp;lt;CATEGORY&amp;gt;QUOTES)))&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061370#M355268</guid>
      <dc:creator />
      <dc:date>2016-03-01T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061371#M355269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried exactly that and still have a syntax error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061371#M355269</guid>
      <dc:creator />
      <dc:date>2016-03-01T17:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061372#M355270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set analysis specification in the first SUM() call should be surrounded by curly braces too. Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SUM( &lt;STRONG style="color: #ff0000;"&gt;{ &lt;/STRONG&gt;&amp;lt;[CATEGORY_VALUE] = {'GAINWeb'}&amp;gt; &lt;STRONG style="color: #ff0000;"&gt;}&lt;/STRONG&gt; QUOTES) ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it easier on you, you could use more whitespace to group the important parts of an expression. And don't be mistaken by the layout of the second SUM() call. That one doesn't use set analysis but a TOTAL modifier with a field list between angled brackets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061372#M355270</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-01T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax issues when referencing a field name</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061373#M355271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW the red wiggly lines underneath an error in the expression editor do start where something is missing or not properly understood by the syntax checker. It will help you find the thing that is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you think there is something wrong with the balancing of parentheses and such (for example, in a complex expression with lots of nested IF() functions), move the cursor immediately in front of the opening bracket. That one and the matching closing bracket will be underlined (if possible). You can easily find out If some are missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-issues-when-referencing-a-field-name/m-p/1061373#M355271</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-01T20:13:36Z</dc:date>
    </item>
  </channel>
</rss>

