<?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 Indirect set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218672#M504987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I must say i don't know.&lt;/P&gt;&lt;P&gt;I've tried some options, but it won't work.&lt;/P&gt;&lt;P&gt;Using the value of the dimension Dev1(or 2) into the Set ... seems the syntax is wrong or maybe it can't be done this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'll say to you this (what a friend of mine gave me in this moments): think out of the box!&lt;/P&gt;&lt;P&gt;Maybe the abbordation is not quite the good one. Maybe you should think at another approach to reach the data.&lt;/P&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;Mihai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2009 15:57:31 GMT</pubDate>
    <dc:creator>mongolu</dc:creator>
    <dc:date>2009-10-26T15:57:31Z</dc:date>
    <item>
      <title>Indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218669#M504984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;This new feature "Indirect set analysis" in QV9 is really qool think. I started to use it and cannot solve one thing.&lt;/P&gt;&lt;P&gt;I have the data like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Amount ReportLine Line Dev1 Dev2&lt;/STRONG&gt;&lt;BR /&gt;10 A1 A&lt;BR /&gt;20 A2 A&lt;BR /&gt;15 A A&lt;BR /&gt;21 B1 B&lt;BR /&gt;23 B2 B&lt;BR /&gt; C C A B&lt;/P&gt;&lt;P&gt;So, the target is to make the pivot table, where the dimension is &lt;STRONG&gt;ReportLine&lt;/STRONG&gt;, expression is sum(Amount), but when Dev1 exists, then expression should calculate these amounts, where ReportLine is corresponded to the value of Dev1 devided by Dev2 (something like Lookup).&lt;/P&gt;&lt;P&gt;I'm trying to do it using Indirect set analysis and only script is working, but not giving me right result is this. Actually it gives right result only if I make the selection ReportLine=C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;if(len(Dev1)&amp;gt;0,&lt;BR /&gt; sum({$&amp;lt;ReportLine = P ({1&amp;lt;Line={"$(=maxstring(Dev1))"}&amp;gt;} &amp;gt;} Amount/&lt;BR /&gt; sum({$&amp;lt;ReportLine = P ({1&amp;lt;Line={"$(=maxstring(Dev2))"}&amp;gt;} &amp;gt;} Amount,&lt;BR /&gt;sum(Amount))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Konstantins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 02:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218669#M504984</guid>
      <dc:creator>skaredovs</dc:creator>
      <dc:date>2009-10-18T02:18:13Z</dc:date>
    </item>
    <item>
      <title>Indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218670#M504985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your syntax isn't right. you;ve missed a ")"and the "TOTAL".&lt;/P&gt;&lt;P&gt;this should work:&lt;/P&gt;&lt;P&gt;if(len(Dev1)&amp;gt;0,&lt;BR /&gt; sum({$&amp;lt;ReportLine = P ({1&amp;lt;Line={"$(=maxstring(Dev1))"}&amp;gt;} ReportLine ) &amp;gt;} TOTAL Amount) /&lt;BR /&gt; sum({$&amp;lt;ReportLine = P ({1&amp;lt;Line={"$(=maxstring(Dev2))"}&amp;gt;} ReportLine ) &amp;gt;} TOTAL Amount),&lt;BR /&gt; sum(Amount)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;works also without the "ReportLine" before de TOTAL.&lt;/P&gt;&lt;P&gt;"If the field in the element function is omitted,&lt;BR /&gt;the function will return the possible values of the field&lt;BR /&gt;specified in the outer assignment."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 09:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218670#M504985</guid>
      <dc:creator>mongolu</dc:creator>
      <dc:date>2009-10-18T09:21:33Z</dc:date>
    </item>
    <item>
      <title>Indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218671#M504986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mongolu,&lt;/P&gt;&lt;P&gt;Thanks for advise. But unfortunately this script is working only in one subtotal case.&lt;BR /&gt;I have attached example with many subtotals. I need to see it in pivot or straight table, as shown in example. The main question is &lt;STRONG&gt;how to return the value of the current dimension to indirect set analysis string&lt;/STRONG&gt; (in place of &lt;EM&gt;{"$(=maxstring(Dev1))"}&lt;/EM&gt;)?&lt;/P&gt;&lt;P&gt;Something like this script, which is not working:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(len(Dev1)&amp;gt;0,&lt;BR /&gt; sum({$&amp;lt;ReportLine = P({1&amp;lt;Line={Dev1}&amp;gt;} )&amp;gt;} total Amount)/&lt;BR /&gt; sum({$&amp;lt;ReportLine = P({1&amp;lt;Line={Dev2}&amp;gt;} )&amp;gt;} total Amount),&lt;BR /&gt;sum(Amount))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any other solution?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Konstantins&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 17:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218671#M504986</guid>
      <dc:creator>skaredovs</dc:creator>
      <dc:date>2009-10-19T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218672#M504987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I must say i don't know.&lt;/P&gt;&lt;P&gt;I've tried some options, but it won't work.&lt;/P&gt;&lt;P&gt;Using the value of the dimension Dev1(or 2) into the Set ... seems the syntax is wrong or maybe it can't be done this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'll say to you this (what a friend of mine gave me in this moments): think out of the box!&lt;/P&gt;&lt;P&gt;Maybe the abbordation is not quite the good one. Maybe you should think at another approach to reach the data.&lt;/P&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;Mihai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 15:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218672#M504987</guid>
      <dc:creator>mongolu</dc:creator>
      <dc:date>2009-10-26T15:57:31Z</dc:date>
    </item>
    <item>
      <title>Indirect set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218673#M504988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Konstantins,&lt;BR /&gt;&lt;BR /&gt;Have you found the solution to the question :&lt;BR /&gt;how to return the value of the current dimension to indirect set analysis string ?&lt;BR /&gt;&lt;BR /&gt;I've got the same issue.&lt;BR /&gt;In a crosstab like :&lt;BR /&gt;&lt;BR /&gt;Dim Indic&lt;BR /&gt;A =formula&lt;BR /&gt;B =formula&lt;BR /&gt;C =formula&lt;BR /&gt;&lt;BR /&gt;how in the "formula" could I get in a set analysis the value of "Dim" of the current line ?&lt;BR /&gt;I've tried&lt;BR /&gt; $(=Dim)&lt;BR /&gt; $(=concat(Dim,','))&lt;BR /&gt; $(=only(Dim))&lt;BR /&gt; and fieldvalue, P(), …&lt;BR /&gt;&lt;BR /&gt;The main issue is that a set analysis is "out of the crosstab", and know only of the selections.&lt;BR /&gt;&lt;BR /&gt;A formula like =concat(Dim,',') get the dim value (A or B, or C), but the same in a set analysis get the whole list : A,B,C for the concat part.&lt;BR /&gt;&lt;BR /&gt;=SUM({$&amp;lt;Dim2={$(=concat(Dim1,','))}&amp;gt;} X)&lt;BR /&gt;will return SUM({$&amp;lt;Dim2={A,B,C}&amp;gt;} X)&lt;BR /&gt;but I would like to get SUM({$&amp;lt;Dim2={A}&amp;gt;} X) when on the A line and SUM({$&amp;lt;Dim2={B}&amp;gt;} X) when on th B line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 16:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis/m-p/218673#M504988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-23T16:10:01Z</dc:date>
    </item>
  </channel>
</rss>

