<?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 Data model / dummy dimensions / section access in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-model-dummy-dimensions-section-access/m-p/1758085#M58534</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After applying section access I realized I have a problem in the data model.&lt;/P&gt;&lt;P&gt;Let me shortly explain how it looks at the moment.&lt;/P&gt;&lt;P&gt;The phase 1 of the Qlik dashboard is to replicate an excel report - so a lot of tables, pivot tables, which in excel have quite often unrelated dimension rows.&lt;/P&gt;&lt;P&gt;In Qlik model I have a main big table with the information about projects. Projects have start / end / purged / on hold dates so they are connected to canonical calendar.&lt;/P&gt;&lt;P&gt;Also the requirement is not just to show the final values in the pivot table but also after dimensions selections be able to have a second table with all the related deals / details.&lt;/P&gt;&lt;P&gt;So I decided to create a custom dimensions in the script for more complicated pivot tables, i.e&lt;/P&gt;&lt;P&gt;CustomTable1:&lt;/P&gt;&lt;P&gt;ProjKey,&lt;/P&gt;&lt;P&gt;'My 1st row' as CustomDimension1&lt;/P&gt;&lt;P&gt;From a Qvd&lt;/P&gt;&lt;P&gt;where (conditions required for My 1st row);&lt;/P&gt;&lt;P&gt;concatenate(CustomTable1)&lt;/P&gt;&lt;P&gt;ProjKey,&lt;/P&gt;&lt;P&gt;'My 2nd row' as CustomDimension1&lt;/P&gt;&lt;P&gt;From a Qvd&lt;/P&gt;&lt;P&gt;where (conditions required for My 2nd row);&lt;/P&gt;&lt;P&gt;So I have a dimension with 2 rows which have independent where clause conditions, and are connected to the main table on ProjKey. The main table has something like a project counter (1) so in Qlik pivot table I do for example:&lt;/P&gt;&lt;P&gt;Dimension: CustomDimension1&lt;/P&gt;&lt;P&gt;Column: Canonical Month&lt;/P&gt;&lt;P&gt;Expression: Sum(ProjectCounter)&lt;/P&gt;&lt;P&gt;I am not sure whether in general this was a good approach, but I think it does what is also needed - limits projects when any of pivot dimensions is selected and I have the right projects displayed in the details table.&lt;/P&gt;&lt;P&gt;The problem is where I have a few tables requiring a custom row - for example My 3rd row which is division of My 2nd row and My 1st row&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So the idea was to create a dummy row without any ProjectKey or where clause, so something like&lt;/P&gt;&lt;P&gt;concatenate(CustomTable1)&lt;/P&gt;&lt;P&gt;// ProjKey, commented out&lt;/P&gt;&lt;P&gt;'My 3rd row' as CustomDimension1&lt;/P&gt;&lt;P&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;This doesn't have to be drillable on the front because not necessary will make a sense (maybe in sums, lets say doesn't have to).&lt;/P&gt;&lt;P&gt;On the front in such custom pivot table is solved it by&lt;/P&gt;&lt;P&gt;Dimension: CustomDimension1&lt;/P&gt;&lt;P&gt;Column: Canonical Month&lt;/P&gt;&lt;P&gt;Expression: (simplified - some additional set analysis condition to react to users selections on rows)&lt;/P&gt;&lt;P&gt;pick(match(only({1}CustomDimension1),&lt;BR /&gt;'My 1st row',&lt;/P&gt;&lt;P&gt;'My 2st row',&lt;/P&gt;&lt;P&gt;'My 3rd row'&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;Expr1,&lt;/P&gt;&lt;P&gt;Expr2,&lt;/P&gt;&lt;P&gt;Expr2/Expr1&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;That has worked, but the problem became apparent when I added section access.&lt;/P&gt;&lt;P&gt;Section access limits data so my dummy dimension rows without ProjKey disappeared - obviously.&lt;/P&gt;&lt;P&gt;I don't have any idea at the moment how to solve this problem.&lt;BR /&gt;Section access may limit data on 4 different fields - country, region, manager, leading manager.&lt;/P&gt;&lt;P&gt;How would you approach this problem.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
    <dc:creator>Luk_B</dc:creator>
    <dc:date>2021-12-20T21:08:46Z</dc:date>
    <item>
      <title>Data model / dummy dimensions / section access</title>
      <link>https://community.qlik.com/t5/App-Development/Data-model-dummy-dimensions-section-access/m-p/1758085#M58534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After applying section access I realized I have a problem in the data model.&lt;/P&gt;&lt;P&gt;Let me shortly explain how it looks at the moment.&lt;/P&gt;&lt;P&gt;The phase 1 of the Qlik dashboard is to replicate an excel report - so a lot of tables, pivot tables, which in excel have quite often unrelated dimension rows.&lt;/P&gt;&lt;P&gt;In Qlik model I have a main big table with the information about projects. Projects have start / end / purged / on hold dates so they are connected to canonical calendar.&lt;/P&gt;&lt;P&gt;Also the requirement is not just to show the final values in the pivot table but also after dimensions selections be able to have a second table with all the related deals / details.&lt;/P&gt;&lt;P&gt;So I decided to create a custom dimensions in the script for more complicated pivot tables, i.e&lt;/P&gt;&lt;P&gt;CustomTable1:&lt;/P&gt;&lt;P&gt;ProjKey,&lt;/P&gt;&lt;P&gt;'My 1st row' as CustomDimension1&lt;/P&gt;&lt;P&gt;From a Qvd&lt;/P&gt;&lt;P&gt;where (conditions required for My 1st row);&lt;/P&gt;&lt;P&gt;concatenate(CustomTable1)&lt;/P&gt;&lt;P&gt;ProjKey,&lt;/P&gt;&lt;P&gt;'My 2nd row' as CustomDimension1&lt;/P&gt;&lt;P&gt;From a Qvd&lt;/P&gt;&lt;P&gt;where (conditions required for My 2nd row);&lt;/P&gt;&lt;P&gt;So I have a dimension with 2 rows which have independent where clause conditions, and are connected to the main table on ProjKey. The main table has something like a project counter (1) so in Qlik pivot table I do for example:&lt;/P&gt;&lt;P&gt;Dimension: CustomDimension1&lt;/P&gt;&lt;P&gt;Column: Canonical Month&lt;/P&gt;&lt;P&gt;Expression: Sum(ProjectCounter)&lt;/P&gt;&lt;P&gt;I am not sure whether in general this was a good approach, but I think it does what is also needed - limits projects when any of pivot dimensions is selected and I have the right projects displayed in the details table.&lt;/P&gt;&lt;P&gt;The problem is where I have a few tables requiring a custom row - for example My 3rd row which is division of My 2nd row and My 1st row&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So the idea was to create a dummy row without any ProjectKey or where clause, so something like&lt;/P&gt;&lt;P&gt;concatenate(CustomTable1)&lt;/P&gt;&lt;P&gt;// ProjKey, commented out&lt;/P&gt;&lt;P&gt;'My 3rd row' as CustomDimension1&lt;/P&gt;&lt;P&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;This doesn't have to be drillable on the front because not necessary will make a sense (maybe in sums, lets say doesn't have to).&lt;/P&gt;&lt;P&gt;On the front in such custom pivot table is solved it by&lt;/P&gt;&lt;P&gt;Dimension: CustomDimension1&lt;/P&gt;&lt;P&gt;Column: Canonical Month&lt;/P&gt;&lt;P&gt;Expression: (simplified - some additional set analysis condition to react to users selections on rows)&lt;/P&gt;&lt;P&gt;pick(match(only({1}CustomDimension1),&lt;BR /&gt;'My 1st row',&lt;/P&gt;&lt;P&gt;'My 2st row',&lt;/P&gt;&lt;P&gt;'My 3rd row'&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;Expr1,&lt;/P&gt;&lt;P&gt;Expr2,&lt;/P&gt;&lt;P&gt;Expr2/Expr1&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;That has worked, but the problem became apparent when I added section access.&lt;/P&gt;&lt;P&gt;Section access limits data so my dummy dimension rows without ProjKey disappeared - obviously.&lt;/P&gt;&lt;P&gt;I don't have any idea at the moment how to solve this problem.&lt;BR /&gt;Section access may limit data on 4 different fields - country, region, manager, leading manager.&lt;/P&gt;&lt;P&gt;How would you approach this problem.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-model-dummy-dimensions-section-access/m-p/1758085#M58534</guid>
      <dc:creator>Luk_B</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data model / dummy dimensions / section access</title>
      <link>https://community.qlik.com/t5/App-Development/Data-model-dummy-dimensions-section-access/m-p/1758555#M58601</link>
      <description>&lt;P&gt;Dummy ProjectKey in Dimension table (for dummy rows generated with autogenerate), main data (concatenate dummy ProjectKey) and section access (Access, UserID, null as your SA fields,&amp;nbsp; 'dummy' as ProjectKey) solved the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 17:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-model-dummy-dimensions-section-access/m-p/1758555#M58601</guid>
      <dc:creator>Luk_B</dc:creator>
      <dc:date>2020-11-04T17:08:16Z</dc:date>
    </item>
  </channel>
</rss>

