<?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 set analysis with expression searches in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2031143#M84933</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;I would like to write an expression that counts customers who placed orders worth more than 150 in a certain time frame.&lt;/P&gt;
&lt;P&gt;I wrote this expression but it is wrong because the symbol " is repeated several times:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Sum({$&amp;lt; customer_id={"=Sum({$&amp;lt;OrderDate={"&amp;gt;=$(=Date(vStartDate))&amp;lt;=$(=Date(vEndDate))"}&amp;gt;} Amount)&amp;gt;150"} &amp;gt;} oneCustomer)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;What is the correct syntax to get the desired result?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 28 Jan 2023 16:40:43 GMT</pubDate>
    <dc:creator>stefano_marson</dc:creator>
    <dc:date>2023-01-28T16:40:43Z</dc:date>
    <item>
      <title>set analysis with expression searches</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2031143#M84933</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;I would like to write an expression that counts customers who placed orders worth more than 150 in a certain time frame.&lt;/P&gt;
&lt;P&gt;I wrote this expression but it is wrong because the symbol " is repeated several times:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Sum({$&amp;lt; customer_id={"=Sum({$&amp;lt;OrderDate={"&amp;gt;=$(=Date(vStartDate))&amp;lt;=$(=Date(vEndDate))"}&amp;gt;} Amount)&amp;gt;150"} &amp;gt;} oneCustomer)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;What is the correct syntax to get the desired result?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 16:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2031143#M84933</guid>
      <dc:creator>stefano_marson</dc:creator>
      <dc:date>2023-01-28T16:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with expression searches</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2031157#M84935</link>
      <description>&lt;P&gt;Hello Stefano&lt;/P&gt;
&lt;P&gt;You can escape the quotes by preceding with another qoute (below in red)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sum({$&amp;lt; customer_id={"=Sum({$&amp;lt;OrderDate={&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;"&amp;gt;=$(=Date(vStartDate))&amp;lt;=$(=Date(vEndDate))&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;"}&amp;gt;} Amount)&amp;gt;150"} &amp;gt;} oneCustomer)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Christos K.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 19:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2031157#M84935</guid>
      <dc:creator>ckarras22</dc:creator>
      <dc:date>2023-01-28T19:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with expression searches</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2031379#M84947</link>
      <description>&lt;P&gt;It's not a real set analysis else an if-loop and therefore it's better to apply a classical syntax instead of including it with a nested logic into the set analysis. This means something like this:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;if(Sum({$&amp;lt;OrderDate={"&amp;gt;=$(=Date(vStartDate))&amp;lt;=$(=Date(vEndDate))"}&amp;gt;} Amount)&amp;gt;150, &lt;BR /&gt;Sum(oneCustomer))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 09:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2031379#M84947</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-01-30T09:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with expression searches</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2032027#M85026</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Christos&amp;nbsp;, your reply is correct!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 10:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-with-expression-searches/m-p/2032027#M85026</guid>
      <dc:creator>stefano_marson</dc:creator>
      <dc:date>2023-01-31T10:14:41Z</dc:date>
    </item>
  </channel>
</rss>

