<?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: Drill down group set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377648#M420412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use QlikView expressions to dynamically assemble pieces of a set analysis specification. Because that would mean that some parts of the same expression must be evaluated before the remainder is evaluated, and QlikView has no idea at all about what should come first. A Set Analysis specification is a fixed string in which you are allowed to replace parts with $-sign substitution before any evaluation happens. Afterwards, the evaluation is performed in one stroke.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, this will &lt;EM&gt;not&lt;/EM&gt; work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Sum(IF (UseSetAnalysis,{&amp;lt;Field={1,2,3}&amp;gt;}) SalesAmount) //Conditional set analysis?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2017 12:54:05 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-11-13T12:54:05Z</dc:date>
    <item>
      <title>Drill down group set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377645#M420409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik Developers,&lt;/P&gt;&lt;P&gt;I have following problem to solve: I have drill down group let say consisting of following dimensions&amp;nbsp; A-&amp;gt;B-&amp;gt;C-&amp;gt;&lt;/P&gt;&lt;P&gt;then I have expression sum(sales). On the dashboard user should see 2 values&lt;/P&gt;&lt;P&gt;1. for currently selected level&lt;/P&gt;&lt;P&gt;2. reference always for data&amp;nbsp; 1 level up&lt;/P&gt;&lt;P&gt;For example when users is on level C then I need to calculate 2 expressions sum(sales) and sum({&amp;lt;,C=&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;I'd like to calculate formula like&lt;/P&gt;&lt;P&gt;if(getCurrentField(Group)='B','{&amp;lt;B=&amp;gt;}', if(getCurrentField(Group)=C,'{&amp;lt;C=&amp;gt;} '...&lt;/P&gt;&lt;P&gt;When I'm passing this variable to expression I got error invalid set identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd grateful for any clue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377645#M420409</guid>
      <dc:creator>salezian</dc:creator>
      <dc:date>2017-11-13T12:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down group set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377646#M420410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try clicking okay to see if you get the result you expected? Syntax editor, at times, show error even when the expression is correct.... I would suggest you to check the output and ignore the error message for a little bit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377646#M420410</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-13T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down group set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377647#M420411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetCurrentField('[Group]') = 'B', Sum({&amp;lt;B=&amp;gt;} Sales), If(GetCurrentField('[Grup]') = 'C', Sum({&amp;lt;C=&amp;gt;} Sales)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377647#M420411</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-13T12:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down group set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377648#M420412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use QlikView expressions to dynamically assemble pieces of a set analysis specification. Because that would mean that some parts of the same expression must be evaluated before the remainder is evaluated, and QlikView has no idea at all about what should come first. A Set Analysis specification is a fixed string in which you are allowed to replace parts with $-sign substitution before any evaluation happens. Afterwards, the evaluation is performed in one stroke.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, this will &lt;EM&gt;not&lt;/EM&gt; work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Sum(IF (UseSetAnalysis,{&amp;lt;Field={1,2,3}&amp;gt;}) SalesAmount) //Conditional set analysis?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377648#M420412</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-11-13T12:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down group set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377649#M420413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I came to the same conclusion. I find out following solution&lt;/P&gt;&lt;P&gt;varCompareSet =if(getCurrentField(Group),'A',if(getCurrentField(Group)='B','A' ....&lt;/P&gt;&lt;P&gt;then in expression &lt;/P&gt;&lt;P&gt;sum({&amp;lt;$(vCompareSet)=&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick is to evaluate variable varCompareSet before expression is evaluated. As Peter pointed out set analysis must be literal string. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 14:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drill-down-group-set-analysis/m-p/1377649#M420413</guid>
      <dc:creator>salezian</dc:creator>
      <dc:date>2017-11-13T14:00:09Z</dc:date>
    </item>
  </channel>
</rss>

