<?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: Nested Set Modifiers with Advanced Searches in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105546#M366151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experimenting is good, but if you still have issue you can share a sample so that we can see what issue you are running into.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2016 15:48:44 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-08T15:48:44Z</dc:date>
    <item>
      <title>Nested Set Modifiers with Advanced Searches</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105541#M366146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a set analysis statement that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;Date_Key = {"$(= '&amp;gt;=' &amp;amp; date(addmonths(max(MonthYearShort), -2)) &amp;amp; '&amp;lt;=' &amp;amp; date(max(MonthYearShort)))"} &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to select the most recent 3 months of any given selection and show results based on that.&lt;/P&gt;&lt;P&gt;However I am running into a problem whenever I try to use this kind of function within another set analysis statement. The Qlikview documentation has the following example of set modifers with advanced searches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; {$&amp;lt;&lt;BR /&gt; Customer = &lt;BR /&gt;&amp;nbsp; {“=Sum({1&amp;lt;Year = {2007}&amp;gt;} Sales ) &amp;gt; 1000000”}&lt;BR /&gt; &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this modified to look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; {$&amp;lt;&lt;BR /&gt; Customer = &lt;BR /&gt;&amp;nbsp; {“=Sum({1&amp;lt;Date_Key = {"$(= '&amp;gt;=' &amp;amp; date(addmonths(max(MonthYearShort), -2)) &amp;amp; '&amp;lt;=' &amp;amp; date(max(MonthYearShort)))"} &amp;gt;} Sales ) &amp;gt; 1000000”}&lt;BR /&gt; &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here seems to be the repeated use of the double quotation marks. When this expression is written into Qlikview, the double quotes at the start of the Customer statement, {“=Sum, seems to close with the double quotes at the start of the Date_Key statement, Date_Key = {"$(= '&amp;gt;='.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, the example above in the Qlik references uses a number which doesn't require any quotations, however I'm needing the date value evaluated based on the above expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of any solution or workaround to this problem? I've played around with some dollar sign expansion without success, but I'm wondering if this is indeed the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 10:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105541#M366146</guid>
      <dc:creator />
      <dc:date>2016-08-29T10:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Modifiers with Advanced Searches</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105542#M366147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(&amp;nbsp; {$&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; {“=Sum({1&amp;lt;Date_Key = { &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;'&amp;gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;$(=&lt;/STRONG&gt;&lt;/SPAN&gt;date(addmonths(max(MonthYearShort), -2))&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;lt;=&lt;SPAN style="color: #0000ff;"&gt;$(=&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;date(max(MonthYearShort))&lt;STRONG style="color: #0000ff;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;} &amp;gt;} Sales ) &amp;gt; 1000000”}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 12:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105542#M366147</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-08-29T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Modifiers with Advanced Searches</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105543#M366148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be using a &lt;A href="https://community.qlik.com/qlik-blogpost/4232"&gt;Escape sequences&lt;/A&gt; might help. Have not tested, but something to look into &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 12:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105543#M366148</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-29T12:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Modifiers with Advanced Searches</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105544#M366149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Date={"&amp;gt;=$(=Date(Addmonths(Max(Date),-2)))&amp;lt;=$(=Date(Max(Date)))"} field_name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 12:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105544#M366149</guid>
      <dc:creator>dineshraj</dc:creator>
      <dc:date>2016-08-29T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Modifiers with Advanced Searches</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105545#M366150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the replies and sorry for not following up on this sooner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately none of the suggestions so far seem to be working so I'm going to experiment a bit more with this and I will post a solution once I've worked it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 09:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105545#M366150</guid>
      <dc:creator />
      <dc:date>2016-09-08T09:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Modifiers with Advanced Searches</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105546#M366151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experimenting is good, but if you still have issue you can share a sample so that we can see what issue you are running into.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 15:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105546#M366151</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-08T15:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Set Modifiers with Advanced Searches</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105547#M366152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is what my solution eventually looked like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[ProductID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;BR /&gt; {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;"=(((sum({$&amp;lt;[ProductField1] = {[value]}, [ProductField2]={[value]}, Date_Key = {'&amp;gt;$(=date(addmonths(max(MonthYear),-4),[MMM-YY])) &amp;lt;$(=date(max(MonthYear),[MMM-YY]))'}&amp;gt;} ProductField3)&lt;BR /&gt; +&lt;BR /&gt; sum({$&amp;lt;[ProductField1] = {[value], [value]}, [ProductField2]={[value]}, Date_Key = {'&amp;gt;$(=date(addmonths(max(MonthYear),-4),[MMM-YY])) &amp;lt;$(=date(max(MonthYear),[MMM-YY]))'}&amp;gt;} ProductField3))&lt;BR /&gt; /3)/[ProductField4])&lt;BR /&gt; &amp;gt; 1.1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;BR /&gt; &amp;gt;} ProductID) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Pay attention to the square brackets used for some of the fields and values, as opposed to quotation marks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 09:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Set-Modifiers-with-Advanced-Searches/m-p/1105547#M366152</guid>
      <dc:creator />
      <dc:date>2016-09-29T09:45:13Z</dc:date>
    </item>
  </channel>
</rss>

