<?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: set analysis recursion - kind-of in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642019#M235189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get to the results I needed, I altered the data model instead of relying on expressions.&amp;nbsp; My steps are below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make a copy of the Map table&lt;/P&gt;&lt;P&gt;join the bench from the fact to one map table&lt;/P&gt;&lt;P&gt;join the portf from the fact to the other map table&lt;/P&gt;&lt;P&gt;join the two map tables together&lt;/P&gt;&lt;P&gt;Split the DimP in half (one for portf, one for Bench)&lt;/P&gt;&lt;P&gt;Leave the DimS as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Splitting the map in half and joining the two sides to the map first, ensured that for every benchmark record the portfolio was identified (for securities that are only held in the Bench and not the Diff).&amp;nbsp; This is necessary to properly group by the Portf and include all of the related Bench in that grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could then do this for both portfolio market value and bench market value:&lt;/P&gt;&lt;P&gt;sum(MVB)/sum(total &amp;lt;Portf&amp;gt; MVB)&lt;/P&gt;&lt;P&gt;sum(MVP)/sum(total &amp;lt;Portf&amp;gt; MVP)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 13:13:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-23T13:13:04Z</dc:date>
    <item>
      <title>set analysis recursion - kind-of</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642014#M235184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem for which my understanding was set analysis was the perfect solution, but I can't seem to solve it.&amp;nbsp; Let me provide some preface on the data model and what I need to do then ask my question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fact table of positions.&amp;nbsp; These are positions of both portfolios and benchmarks.&amp;nbsp; the field here i'm chiefly interested in is market_value.&amp;nbsp; I have a dimension table that describes the portfolios and benchmarks.&amp;nbsp; I also have another table which maps portfolios to benchmarks.&amp;nbsp; I have attempted joining this to the dimension table and using as an island mapping table but can't seem to get the set analysis right regardless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart i need to create (this is the short version) is:&lt;/P&gt;&lt;P&gt;portfolio_id(dim) | sum(market_value) of portfolio_id(dim) | benchmark_id(dim) where this is found in the relational map to the portfolio_id | sum(market_value) of benchmark_id(dim)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;id | mv&lt;/P&gt;&lt;P&gt;P1 | 50&lt;/P&gt;&lt;P&gt;P1 | 100&lt;/P&gt;&lt;P&gt;B5 | 60&lt;/P&gt;&lt;P&gt;B5 | 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim:&lt;/P&gt;&lt;P&gt;id | name&lt;/P&gt;&lt;P&gt;P1 | ASDF&lt;/P&gt;&lt;P&gt;B5 | QWER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the map:&lt;/P&gt;&lt;P&gt;Portf | Bench&lt;/P&gt;&lt;P&gt;P1 | B5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart: (when selecting P1 from a list box)&lt;/P&gt;&lt;P&gt;ASDF | 150 | QWER | 140&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll need to extrapolate on the solution, but the basics should provide the understanding to extrapolate.&amp;nbsp; The last field in the final chart is my road block.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 14:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642014#M235184</guid>
      <dc:creator />
      <dc:date>2014-05-21T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis recursion - kind-of</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642015#M235185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;have a look at the attach example , it uses set analysis for benchmark Mv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 14:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642015#M235185</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-05-21T14:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis recursion - kind-of</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642016#M235186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those that can't access the example, the formula Liron gave is sum({&amp;lt;ID=p(Bench)&amp;gt;} total Mv) with 2 dimensions (PortID and BenchID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Liron; however... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;At this point I need to expand my problem as it seems the simplest example is too simple for my needs.&amp;nbsp; The first qualm is that I need to report on more than one portfolio at a time, extending the final chart to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Chart: (when selecting P1,P2,P3 from a list box)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ASDF | 150 | QWER | 140&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P2N&amp;nbsp;&amp;nbsp; | 200 | B1N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 350&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P3N&amp;nbsp;&amp;nbsp; | 130 | QWER | 140&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;the total modifier in the above expression will not work when expanding the use case in this manner.&amp;nbsp; As a note, a single benchmark could be related to more than 1 portfolio.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'll go ahead and not the further expansion of the use case here as well.&amp;nbsp; The chart should be a pivot table as the first dimension is portfolio_id, the second is asset_type.&amp;nbsp; asset_type comes from a second dimension table which describes the positions/securities.&amp;nbsp; The end goal being to alter the market_value computation into a % of portfolio thus seeing the asset allocation differences between the portfolio and it's benchmark.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Chart: (when expanding above into assets (not taking the step of percentage))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ASDF | 150 | QWER | 140&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T1 | 75&amp;nbsp;&amp;nbsp; | QWER | 140&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2 | 75&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P2N&amp;nbsp;&amp;nbsp; | 200 | B1N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 350&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T1 | 75&amp;nbsp;&amp;nbsp; | &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;B1N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;| 150&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2 | 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3 | 75&amp;nbsp;&amp;nbsp; | &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;B1N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;| 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P3N&amp;nbsp;&amp;nbsp; | 130 | QWER | 140&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T1 | 80&amp;nbsp;&amp;nbsp; | QWER | 140&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3 | 50&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Chart: (when expanding above into percentage)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ASDF | 100% | QWER | 100&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T1 | 50%| QWER | 100%&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2 | 50%|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P2N&amp;nbsp;&amp;nbsp; | 100% | B1N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 100%&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T1 | 75% | &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;B1N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;| 42.8%&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2 | 0%&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 14.2%&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3 | 25%&amp;nbsp; | &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;B1N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;| 42.8&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;P3N&amp;nbsp;&amp;nbsp; | 100% | QWER | 100%&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T1 | 61.5%| QWER | 100%&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T3 | 38.4%|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 0&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Edit: final chart was incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 14:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642016#M235186</guid>
      <dc:creator />
      <dc:date>2014-05-21T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis recursion - kind-of</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642017#M235187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can you post a sample data&lt;/P&gt;&lt;P&gt;so i can help you with the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 17:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642017#M235187</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-05-21T17:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis recursion - kind-of</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642018#M235188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, tried attaching qvw but work won't let me. Here are the inline statements used in that model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; idP, idS, MV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P1, S1, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P1, S2, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P1, S3, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P2, S3, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P2, S4, 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P2, S2, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3, S1, 60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3, S4, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3, S5, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3, S2, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1, S1, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1, S3, 60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1, S5, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2, S9, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2, S1, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2, S8, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2, S3, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2, S4, 40&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DimP:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; idP, NameP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P1, P1Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P2, P2Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3, P3Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1, B1Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B2, B2Name&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DimS:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; idS, AssetType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S1, T1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S2, T1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S3, T2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S4, T2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S5, T3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S6, T3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S7, T1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S8, T2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; S9, T3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Portf, Bench&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P1, B1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P2, B2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3, B1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 17:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642018#M235188</guid>
      <dc:creator />
      <dc:date>2014-05-21T17:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis recursion - kind-of</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642019#M235189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get to the results I needed, I altered the data model instead of relying on expressions.&amp;nbsp; My steps are below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make a copy of the Map table&lt;/P&gt;&lt;P&gt;join the bench from the fact to one map table&lt;/P&gt;&lt;P&gt;join the portf from the fact to the other map table&lt;/P&gt;&lt;P&gt;join the two map tables together&lt;/P&gt;&lt;P&gt;Split the DimP in half (one for portf, one for Bench)&lt;/P&gt;&lt;P&gt;Leave the DimS as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Splitting the map in half and joining the two sides to the map first, ensured that for every benchmark record the portfolio was identified (for securities that are only held in the Bench and not the Diff).&amp;nbsp; This is necessary to properly group by the Portf and include all of the related Bench in that grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could then do this for both portfolio market value and bench market value:&lt;/P&gt;&lt;P&gt;sum(MVB)/sum(total &amp;lt;Portf&amp;gt; MVB)&lt;/P&gt;&lt;P&gt;sum(MVP)/sum(total &amp;lt;Portf&amp;gt; MVP)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-recursion-kind-of/m-p/642019#M235189</guid>
      <dc:creator />
      <dc:date>2014-05-23T13:13:04Z</dc:date>
    </item>
  </channel>
</rss>

