<?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 error on load for if statement with sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-load-for-if-statement-with-sum/m-p/256574#M1182177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Blossomthe2nd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried without the sum? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;if(today()-[Date the error was discovered]=20,upper([Customer name])) as [CPC 20 Error Name]&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2012 13:09:46 GMT</pubDate>
    <dc:creator>cesaraccardi</dc:creator>
    <dc:date>2012-01-06T13:09:46Z</dc:date>
    <item>
      <title>Syntax error on load for if statement with sum</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-load-for-if-statement-with-sum/m-p/256573#M1182176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi Guys&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[Date the Error was discovered]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'20'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;P&gt;[CPC 20 Error Name] &lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;As a work around for an Alert - I need to create a field made up of specific customer names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;I am trying to take the date an error was discovered and count how many days it is open ( By minusing it from todays date !!) if this is equal to 20 then creating a field called &lt;/P&gt;&lt;P&gt;[CPC 20 Error Name] that contains the names that was in Customer name,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;I keep getting a syntax error on load , I think its how I have written the sum formula -- Can anyone please help ?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;A&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 12:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-on-load-for-if-statement-with-sum/m-p/256573#M1182176</guid>
      <dc:creator />
      <dc:date>2012-01-06T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on load for if statement with sum</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-load-for-if-statement-with-sum/m-p/256574#M1182177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Blossomthe2nd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried without the sum? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;if(today()-[Date the error was discovered]=20,upper([Customer name])) as [CPC 20 Error Name]&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 13:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-on-load-for-if-statement-with-sum/m-p/256574#M1182177</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2012-01-06T13:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on load for if statement with sum</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-load-for-if-statement-with-sum/m-p/256575#M1182178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duel issue , I actually took out the "From" part of the script in error ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a different load error and used your sugeestion , and its A Ok now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 13:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-on-load-for-if-statement-with-sum/m-p/256575#M1182178</guid>
      <dc:creator />
      <dc:date>2012-01-06T13:22:14Z</dc:date>
    </item>
  </channel>
</rss>

