<?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: Token Doesn't Match - Count(RangeSum &amp; Several If Statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294540#M822758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that removing the = sign the cause of the problem -- I think the = sign is masking the error and removing the sign reveals the error. The = sign in that position is a syntax error itself (and you can't always rely on the syntax checker).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect that one of your variables is empty or has some content that is causing an error. The variables are expanded before the statement is parsed and executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 13:09:51 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-07-26T13:09:51Z</dc:date>
    <item>
      <title>Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294536#M822754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving an error ("Token doesn't match") when attempting to use the below Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(=RangeSum(&lt;/P&gt;&lt;P&gt;If(OrgId &amp;gt; 0, vMaxRankingPoints), &lt;/P&gt;&lt;P&gt;If(IsNull([CompanyName]),vNullCompanyName),&lt;/P&gt;&lt;P&gt;If(IsNull([Address1]),vNullAddress1),&lt;/P&gt;&lt;P&gt;If(IsNull([AddressCounty]),vNullAddressCounty),&lt;/P&gt;&lt;P&gt;If(IsNull([AddressPostcode]),vNullAddressPostcode),&lt;/P&gt;&lt;P&gt;If(IsNull([AddressTown]),vNullAddressTown),&lt;/P&gt;&lt;P&gt;If(IsNull([Tel1]),vNullTelephone),&lt;/P&gt;&lt;P&gt;If(IsNull([modeled_turnover_band_desc]),vNullTurnover),&lt;/P&gt;&lt;P&gt;If(IsNull([WWW]),vNullWebsite),&lt;/P&gt;&lt;P&gt;If(Max([ActionDateStart]) &amp;lt;= Date(Today()-90), vNoContactOver90Days),&lt;/P&gt;&lt;P&gt;If(Max([ActionDateStart]) &amp;lt;= Date(Today()-365), vNoContactOver365Days)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Range Sum &amp;amp; all the if statements give me an end results depending on what the OrgId contains.&lt;/P&gt;&lt;P&gt;So vMaxRankingPoints is set at 100 &amp;amp; the other variables are negative points which gives a result at the end.&lt;/P&gt;&lt;P&gt;Example - Telephone number is missing, so minus 10 points from the vMaxRankingPoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then want to group these using the Count Function;&lt;/P&gt;&lt;P&gt;So I would end up with a result like,&amp;nbsp; 520 Org Ids have a ranking of 75, 202 ranking of 100, 1300 ranking of 80 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be appreciated.&lt;/P&gt;&lt;P&gt;Please note that removing "Count" does give me results of the final score per OrgID, so I am only really looking for a fix for the start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294536#M822754</guid>
      <dc:creator>craig157</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294537#M822755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I completely understand the issue, but have you tried to remove the equal sign before RangeSum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171452_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 12:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294537#M822755</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-26T12:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294538#M822756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response; unfortunately removing the = Sign as highlighted just gives 'Error In Expression'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 12:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294538#M822756</guid>
      <dc:creator>craig157</dc:creator>
      <dc:date>2017-07-26T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294539#M822757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Craig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you want to do something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;/P&gt;&lt;P&gt;Aggr(&lt;/P&gt;&lt;P&gt;RangeSum(&lt;/P&gt;&lt;P&gt;If(OrgID &amp;gt; 0, vMaxRankingPoints),&lt;/P&gt;&lt;P&gt;If(IsNull([Company Name]),vNullCompanyName),&lt;/P&gt;&lt;P&gt;If(IsNull([Address1]),vNullAddress1),&lt;/P&gt;&lt;P&gt;If(IsNull([Address County]),vNullAddressCounty),&lt;/P&gt;&lt;P&gt;If(IsNull([Address Postcode]),vNullAddressPostcode),&lt;/P&gt;&lt;P&gt;If(IsNull([Address Town]),vNullAddressTown),&lt;/P&gt;&lt;P&gt;If(IsNull([Tel1]),vNullTelephone),&lt;/P&gt;&lt;P&gt;If(IsNull([modeled_turnover_band_desc]),vNullTurnover),&lt;/P&gt;&lt;P&gt;If(IsNull([WWW]),vNullWebsite),&lt;/P&gt;&lt;P&gt;If(Max([ActionDateStart]) &amp;lt;= Date(Today()-90), vNoContactOver90Days),&lt;/P&gt;&lt;P&gt;If(Max([ActionDateStart]) &amp;lt;= Date(Today()-365), vNoContactOver365Days)&lt;/P&gt;&lt;P&gt;), OrgID&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't nest aggregations without using the AGGR function.&amp;nbsp; I used SUM instead of COUNT as the count will return the number of OrgID's as where the sum will return the summarized totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294539#M822757</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-07-26T13:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294540#M822758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that removing the = sign the cause of the problem -- I think the = sign is masking the error and removing the sign reveals the error. The = sign in that position is a syntax error itself (and you can't always rely on the syntax checker).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect that one of your variables is empty or has some content that is causing an error. The variables are expanded before the statement is parsed and executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294540#M822758</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-07-26T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294541#M822759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tips Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave this a go and it worked in terms of giving me an overall total of all ranking points from all OrgIds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My overall goal though is to have a bar chart that has:&lt;/P&gt;&lt;P&gt;y-axis displays OrgId Count&lt;/P&gt;&lt;P&gt;x-axis displays grouped rankings (points).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End result would hopefully look like the image below (but not as sketchy as mine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikQuestion2607Paint.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171455_QlikQuestion2607Paint.png" style="height: auto;" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would this be possible? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294541#M822759</guid>
      <dc:creator>craig157</dc:creator>
      <dc:date>2017-07-26T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294542#M822760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, I thought the same thing but hadn't come accross the termonology of Token Error on Qlik before today&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294542#M822760</guid>
      <dc:creator>craig157</dc:creator>
      <dc:date>2017-07-26T13:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294543#M822761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Craig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at what I've done here.&amp;nbsp; It may be close to what you are wanting.&amp;nbsp; I've added a calculated dimension to the chart to assist in the look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294543#M822761</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-07-26T13:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Token Doesn't Match - Count(RangeSum &amp; Several If Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294544#M822762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's exactly what I was after!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Token-Doesn-t-Match-Count-RangeSum-Several-If-Statements/m-p/1294544#M822762</guid>
      <dc:creator>craig157</dc:creator>
      <dc:date>2017-07-26T13:35:43Z</dc:date>
    </item>
  </channel>
</rss>

