Drill through table does not show correct count when used with a dimension having parent child hiera

Posted by Arun Singhal on Stack Overflow See other posts from Stack Overflow or by Arun Singhal
Published on 2010-05-12T04:15:01Z Indexed on 2010/05/12 4:24 UTC
Read the original article Hit count: 320

Filed under:

Hi All,

I have a dimension with parent child hierarchy as shown in code block. The issue i am facing is if i have a filter on parent child dimension then drill through table does not show filtered data instead it shows all the data for that dimension. Here is an example.

<Dimension type="StandardDimension" name="page_type_d" caption="Page Type">
<Hierarchy name="page_type_h" hasAll="true" allMemberName="all_page_types" allMemberCaption="All Page Types" primaryKey="id">
  <Table name="npg_page_type_view" alias="pt">
  </Table>
  <Level name="Page Type" column="id" nameColumn="display_name" parentColumn="parent_id" nullParentValue="0" type="Integer" uniqueMembers="true" levelType="Regular" hideMemberIf="Never" caption="Page Type">
    <Closure parentColumn="parent_id" childColumn="page_type_id">
      <Table name="dim_page_types_closure">
      </Table>
    </Closure>
  </Level>
</Hierarchy>

Now suppose i have 4 rows in npg_page_type_view table id display_name parent_id 19 HTML 100 20 PDF 100 21 XML 0 100 Total 0

Now suppose in my fact table i have following records id count 19 2 20 3 21 1

Following is my analysis view. Total (HTML and PDF) - 5 HTML - 2 PDF - 3 XML - 1

Now if i add filter(say Total) on this analysis view using OLAP cube. Then my analysis view shows the following.

Total (HTML and PDF) - 5

Upto this point everything works fine. Now if i click on 5 (to view drill through table) It shows me data against all page type i.e. HTML, PDF, XML but as per filter it should show only HTML and PDF.

Is it an exciting issue or am i doing something wrong here? Please help me.

© Stack Overflow or respective owner

Related posts about olap

  • MDX lekérdezések az Oracle OLAP-hoz

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    Az Oracle OpenWord-ön, 2009. október 12-én jelentette be az Oracle, hogy elkészült a Simba Technologies MDX eszköze az Oracle OLAP eléréséhez: Oracle and Simba Technologies Introduce MDX Provider for Oracle® OLAP. Az MDX Provider for Oracle® OLAP eszközzel közvetlenül az Excel felületrol lehet elérni… >>> More

  • An OLAP client!

    as seen on SQL Blog - Search for 'SQL Blog'
    While surfing CodePlex I’ve come across a very interesting tool for all BI Developers who misses a decent OLAP client where to write, run & test MDX queries http://ranetuilibraryolap.codeplex.com/ I’ve not tested it yet, but I’ll surely do this week and I’ll post my impressions ASAP. The first… >>> More

  • An OLAP client!

    as seen on SQL Blog - Search for 'SQL Blog'
    While surfing CodePlex I’ve come across a very interesting tool for all BI Developers who misses a decent OLAP client where to write, run & test MDX queries http://ranetuilibraryolap.codeplex.com/ I’ve not tested it yet, but I’ll surely do this week and I’ll post my impressions ASAP. The first… >>> More

  • OWB 11gR2 &ndash; OLAP and Simba

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    Oracle Warehouse Builder was the first ETL product to provide a single integrated and complete environment for managing enterprise data warehouse solutions that also incorporate multi-dimensional schemas. The OWB 11gR2 release provides Oracle OLAP 11g deployment for multi-dimensional models (in addition… >>> More

  • Building dynamic OLAP data marts on-the-fly

    as seen on SQL Blogcasts - Search for 'SQL Blogcasts'
    At the forthcoming SQLBits conference, I will be presenting a session on how to dynamically build an OLAP data mart on-the-fly. This blog entry is intended to clarify exactly what I mean by an OLAP data mart, why you may need to build them on-the-fly and finally outline the steps needed to build… >>> More