<?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 Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-set-Analysis/m-p/2487995#M1226199</link>
    <description>&lt;P&gt;Don't use single quotes - that means literals, i.e. not expressions.&lt;/P&gt;
&lt;P&gt;To quote searches you can nest set analysis in three levels:&lt;/P&gt;
&lt;P&gt;Double quotes: "..."&lt;BR /&gt;Square brackets: [...]&lt;BR /&gt;Grave accents `...`&lt;/P&gt;
&lt;P&gt;Use them one by one in the three levels.&lt;/P&gt;
&lt;P&gt;See also&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Design/QlikView-Quoteology/ba-p/1476029" target="_blank"&gt;https://community.qlik.com/t5/Design/QlikView-Quoteology/ba-p/1476029&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Design/Quotes-in-Set-Analysis/ba-p/1471824" target="_blank"&gt;https://community.qlik.com/t5/Design/Quotes-in-Set-Analysis/ba-p/1471824&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 21:53:18 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2024-10-18T21:53:18Z</dc:date>
    <item>
      <title>Nested set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-Analysis/m-p/2487953#M1226197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i have this expression that works fine in qlikview:&lt;BR /&gt;&lt;BR /&gt;sum({&amp;lt;DTREG={'&amp;lt;=$(=DATE(MAX(DTREG)))'},ID_FATTURA={"=fabs(round(sum({&amp;lt;DTREG={'&amp;lt;=$(=DATE(MAX(DTREG)))'}&amp;gt;}DARE)-sum({&amp;lt;DTREG={'&amp;lt;=$(=DATE(MAX(DTREG)))'}&amp;gt;}AVERE),0.01))&amp;gt;0"}&amp;gt;}DARE)&lt;/P&gt;
&lt;P&gt;It doesn't work on cloud.&lt;/P&gt;
&lt;P&gt;I see that the formula&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;DTREG={'&amp;lt;=$(=DATE(MAX(DTREG)))'}&amp;gt;}DARE) works if written in this way:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;DTREG={"&amp;lt;=$(=DATE(MAX(DTREG)))"}&amp;gt;}DARE)&lt;/P&gt;
&lt;P&gt;The problem is in this piece:&lt;/P&gt;
&lt;P&gt;..ID_FATTURA={"=fabs(round(sum({&amp;lt;DTREG={'&amp;lt;=$(=DATE(MAX(DTREG)))'}&amp;gt;}DARE)-sum({&amp;lt;DTREG={'&amp;lt;=$(=DATE(MAX(DTREG)))'}&amp;gt;}AVERE),0.01))&amp;gt;0"}&lt;/P&gt;
&lt;P&gt;if i change ' with " i have expression error because there are to formulas nested.&lt;/P&gt;
&lt;P&gt;Some advise?&lt;/P&gt;
&lt;P&gt;Thanks a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 14:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-Analysis/m-p/2487953#M1226197</guid>
      <dc:creator>DesmoArka</dc:creator>
      <dc:date>2024-10-18T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nested set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-Analysis/m-p/2487963#M1226198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80574"&gt;@DesmoArka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This likely because the "bug" that you can use ' for a " has been fixed for a while, only applied in new documents.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Analytics/Set-Analysis-QlikView-12-vs-Qlik-Sense/m-p/2482563#M255499" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Analytics/Set-Analysis-QlikView-12-vs-Qlik-Sense/m-p/2482563#M255499&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, you have to use [] instead of "" the inner SA search *&lt;/P&gt;
&lt;P&gt;sum(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;DTREG={"&amp;lt;=$(=DATE(MAX(DTREG)))"},&lt;BR /&gt;ID_FATTURA={"=fabs(sum({&amp;lt;DTREG={&lt;FONT color="#FF0000"&gt;[&lt;/FONT&gt;&amp;lt;=$(=DATE(MAX(DTREG)))&lt;FONT color="#ff0000"&gt;]&lt;/FONT&gt;}&amp;gt;}DARE)-sum({&amp;lt;DTREG={[&amp;lt;=$(=DATE(MAX(DTREG)))&lt;FONT color="#ff0000"&gt;]&lt;/FONT&gt;}&amp;gt;}AVERE))&amp;gt;0"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;DARE)&lt;/P&gt;
&lt;P&gt;* changed expression based on Hic's reply&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Drop the ROUND(,0.01), does nothing in regard to &amp;gt; 0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 06:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-Analysis/m-p/2487963#M1226198</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2024-10-21T06:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nested set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-Analysis/m-p/2487995#M1226199</link>
      <description>&lt;P&gt;Don't use single quotes - that means literals, i.e. not expressions.&lt;/P&gt;
&lt;P&gt;To quote searches you can nest set analysis in three levels:&lt;/P&gt;
&lt;P&gt;Double quotes: "..."&lt;BR /&gt;Square brackets: [...]&lt;BR /&gt;Grave accents `...`&lt;/P&gt;
&lt;P&gt;Use them one by one in the three levels.&lt;/P&gt;
&lt;P&gt;See also&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Design/QlikView-Quoteology/ba-p/1476029" target="_blank"&gt;https://community.qlik.com/t5/Design/QlikView-Quoteology/ba-p/1476029&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Design/Quotes-in-Set-Analysis/ba-p/1471824" target="_blank"&gt;https://community.qlik.com/t5/Design/Quotes-in-Set-Analysis/ba-p/1471824&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 21:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-Analysis/m-p/2487995#M1226199</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2024-10-18T21:53:18Z</dc:date>
    </item>
  </channel>
</rss>

