<?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: Update statement not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060755#M355153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='UPDATE [Date] SET Category = ''Revenue'' WHERE [Line description] LIKE ''*' &amp;amp; descfilter.text &amp;amp; '*'' AND Category = ''Other'';'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I used two single quotes e.g. around Revenue and Other (escaped the single quote), i.e. where ever it looks like double quotes, I've used two single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put this expression in a text box. Assuming your descfilter.text shows a unique value like TEST, you should see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE [Date] SET Category = 'Revenue' WHERE [Line description] LIKE '*TEST*' AND Category = 'Other';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how your dynamic update statement should look like, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now copy the full expression into the action statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 22:18:04 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-19T22:18:04Z</dc:date>
    <item>
      <title>Update statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060754#M355152</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 am using dynamic updates and trying to execute the following sql statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Update [Data] set Category = 'Revenue' where [Line Description] like '*" &amp;amp; descfilter.text &amp;amp;+ "*' AND Category ='Other';"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122072_error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Can someone help here?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 18:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060754#M355152</guid>
      <dc:creator />
      <dc:date>2016-04-19T18:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060755#M355153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='UPDATE [Date] SET Category = ''Revenue'' WHERE [Line description] LIKE ''*' &amp;amp; descfilter.text &amp;amp; '*'' AND Category = ''Other'';'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I used two single quotes e.g. around Revenue and Other (escaped the single quote), i.e. where ever it looks like double quotes, I've used two single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put this expression in a text box. Assuming your descfilter.text shows a unique value like TEST, you should see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE [Date] SET Category = 'Revenue' WHERE [Line description] LIKE '*TEST*' AND Category = 'Other';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how your dynamic update statement should look like, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now copy the full expression into the action statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 22:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060755#M355153</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-19T22:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060756#M355154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;Now its says expected WHERE clause in the Update statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060756#M355154</guid>
      <dc:creator />
      <dc:date>2016-04-20T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060757#M355155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the ouput of the expression when put into a text box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-statement-not-working/m-p/1060757#M355155</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-20T15:15:47Z</dc:date>
    </item>
  </channel>
</rss>

