<?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: Combining Summary and Detailed Data within Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163504#M379044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you use the dimension-approach like in my example or is it more complex with any aggr-functions? Of course such conditions needs some overhead but I wouldn't expect a significantly decrease of performance. Maybe there are other points which could be optimized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2016 18:33:06 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-09-08T18:33:06Z</dc:date>
    <item>
      <title>Combining Summary and Detailed Data within Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163501#M379041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with what I am finding to be a difficult challenge.&amp;nbsp; There is a need to create a Pivot Table that, based on a role, will display certain detailed information AS WELL AS summarized information at parallel levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a simple example, if this is my data in a hierarchy form:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="136759" alt="sample_hierarchy.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136759_sample_hierarchy.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the role of a user that looks at the generated Pivot Table is 'TM3', this is what needs to show - detailed data within TM3, summary data of parallel TM levels and summary data at the DM levels.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="136772" alt="sample_pivot.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/136772_sample_pivot.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the role of the user that is looking at the Pivot Table is 'DM2', this is how the table should display - detailed data within the DM2 tree, but summary data at the parallel DM levels:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample_pivot_2.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/136774_sample_pivot_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;So, as you can see, depending on the role defined, there is a combination of detailed information in the downstream hierarchy of data, but summary information in parallel levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the role is going to be dynamically defined by the user logging into the application, the visualization needs to be dynamic enough to account for the different roles.&amp;nbsp; I am open to show/hide conditions for different visuals depending on role type (RM, DM, TM) if that can manage things more easily. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this can be accomplished using some complex Calculated Dimensions, but that causes the application to perform very poorly.&amp;nbsp; I'd like to see if I can accomplish this within the expression(s) using Aggr() and potentially other functions such as match(), etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am expressing this concisely and appreciate any assistance or guidance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 02:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163501#M379041</guid>
      <dc:creator>mike_landow</dc:creator>
      <dc:date>2016-09-08T02:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Summary and Detailed Data within Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163502#M379042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be depending on if the detail-data are really confidential or if the main-goal is a certain kind of usability. If it's only usability you could use dimensions with a condition like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimension = pick(match(osuser(), UserList), DimensionValuesList), Dimension, '-')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby UserList and DimensionValuesList are fields from an AccessTable (maybe implemented by variables which contain: concat(User, ',') - there are certainly more ways to implement such a logic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data are confidential then you will need section access. Either with a really complex hierarchy - I have done such thing before (heavily nested loops with a lot of conditions to create the hierarchy-table) and couldn't really recommend it (we use now two specialiced applications) - or you need to load your data twice (one time with a normal section access logic and the second time with a consolidated level without the lower dimension-details).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither from them is near trivial and you will need some efforts to build a stable system. Here you could find a good starting point to the topic of &lt;A href="https://community.qlik.com/docs/DOC-9039"&gt;Section Access&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 07:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163502#M379042</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-08T07:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Summary and Detailed Data within Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163503#M379043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to create a very complex hierarchy and, as you've already experienced, it is not a recommended solution here as the consolidated logic becomes overly complex to build and maintain going forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is not confidential per se, so using an expression (or calculated dimension) is sufficient, considering other security measures being put into place.&amp;nbsp; Section Access will be used to identify the user as well as some additional visibility rules.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried something similar to your suggested IF() statement and, although it works to an extent, if used as a calculated dimension, the application performance suffers greatly on the visual rendering&amp;nbsp; Do you see any way to incorporate a similar logic into the Expressions?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try your suggestion and see what I can find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163503#M379043</guid>
      <dc:creator>mike_landow</dc:creator>
      <dc:date>2016-09-08T12:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Summary and Detailed Data within Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163504#M379044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you use the dimension-approach like in my example or is it more complex with any aggr-functions? Of course such conditions needs some overhead but I wouldn't expect a significantly decrease of performance. Maybe there are other points which could be optimized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 18:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163504#M379044</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-08T18:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Summary and Detailed Data within Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163505#M379045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've managed to get this to work with the combination of Section Access to identify a role combined with the MATCH() function of the role on the dimensional levels.&amp;nbsp; Additionally, set conditionals on the calculated dimension dependent on the Role of the users as the calculation needed to be handled differently per role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also dependent on a Parent Role in the hierarchy to present detailed information or not.&amp;nbsp; So the code looks at the Role of the user as well as their ParentRole to determine the Account data to show or summarize.&amp;nbsp; Anything that is a summary of data is given a manually defined Dimension value of "xxx Rollup".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For TM Role at the Territory Dimension:&lt;/P&gt;&lt;P&gt;=if(match(UserRole,TM, DM, RM)&amp;gt;0&amp;nbsp; or match(ParentRole,DM, RM),&amp;nbsp; TM,'Territory Rollup')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For DM or RM Role at the Territory Dimension:&lt;/P&gt;&lt;P&gt;=if(match(UserRole,DM, RM)&amp;gt;0, TM,'Territory Rollup')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, at the Account level, have to also do a calculative check:&lt;/P&gt;&lt;P&gt;=if(match(UserRole,TM,DM,RM)&amp;gt;0,[ACCT],'Accounts Rollup')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows the visualizations to be highly dynamic, relative to the user role and performance on the Server is acceptable.&amp;nbsp; This setup allows for expansion of this hierarchy setup to multiple metrics required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 20:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-Summary-and-Detailed-Data-within-Pivot-Table/m-p/1163505#M379045</guid>
      <dc:creator>mike_landow</dc:creator>
      <dc:date>2016-09-08T20:37:40Z</dc:date>
    </item>
  </channel>
</rss>

