<?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: where clause in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/where-clause/m-p/1775006#M60052</link>
    <description>&lt;P&gt;Thanks for the solution !&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jan 2021 06:11:00 GMT</pubDate>
    <dc:creator>vladimirkup</dc:creator>
    <dc:date>2021-01-17T06:11:00Z</dc:date>
    <item>
      <title>where clause</title>
      <link>https://community.qlik.com/t5/App-Development/where-clause/m-p/1773633#M59913</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;i am new to QLIK Sense developing and looking for help.&lt;/P&gt;&lt;P&gt;how do i code&amp;nbsp;&amp;nbsp;in Qlik Sence the following simple SQL query :&lt;/P&gt;&lt;P&gt;SELECT * FROM Table1&lt;BR /&gt;WHERE date = (SELECT MAX(date) FROM Table1)&lt;/P&gt;&lt;P&gt;i tried to do it with variable, something like this&lt;/P&gt;&lt;P&gt;set param1 =&amp;nbsp; (SELECT MAX(date) FROM Table1)&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;resident&amp;nbsp;Table1&lt;/P&gt;&lt;P&gt;where date = $'param1'&lt;/P&gt;&lt;P&gt;but that don't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 08:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-clause/m-p/1773633#M59913</guid>
      <dc:creator>vladimirkup</dc:creator>
      <dc:date>2021-01-12T08:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/App-Development/where-clause/m-p/1773794#M59922</link>
      <description>&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;... where date = $(param1) ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 16:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-clause/m-p/1773794#M59922</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-01-12T16:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/App-Development/where-clause/m-p/1774086#M59944</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;that didn't work. i think this line does not work:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set param1 =&amp;nbsp; (SELECT MAX(date) resident Table1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when i execute in debug mode i do not see the param1 result in the output section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is it even possible to set a variable from a query ? or is it just a syntax issue ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 14:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-clause/m-p/1774086#M59944</guid>
      <dc:creator>vladimirkup</dc:creator>
      <dc:date>2021-01-13T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/App-Development/where-clause/m-p/1774100#M59946</link>
      <description>&lt;P&gt;My suggestion was aimed to assign a string to a variable. But now I have the impression that you want to execute a query and assign the query-result to the variable - that's not possible. To get this you need to something like the following:&lt;/P&gt;&lt;P&gt;t: sql select max(date) as t from table;&lt;/P&gt;&lt;P&gt;set param1 = peek('t', 0, 't');&lt;/P&gt;&lt;P&gt;Depending on the target-query you may also need some formatting with date() and setting the variable-call within quotes like: '$(param1)'.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 15:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-clause/m-p/1774100#M59946</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-01-13T15:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: where clause</title>
      <link>https://community.qlik.com/t5/App-Development/where-clause/m-p/1775006#M60052</link>
      <description>&lt;P&gt;Thanks for the solution !&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 06:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-clause/m-p/1775006#M60052</guid>
      <dc:creator>vladimirkup</dc:creator>
      <dc:date>2021-01-17T06:11:00Z</dc:date>
    </item>
  </channel>
</rss>

