Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

strange sideeffect (bug?) on calculation if hasAll is false

$
0
0
in the foodmart example DB/schema, if I disable the "hasall" of the gender dimension, it impacts the result of any calculation, even if the dimension gender is not selected at all. See the following example queries, the first one before, the second one after modifying the schema (note, the (All) in the ROW selector is taken from the customer dim., see mdx below).

Selection_006.jpg

Selection_005.png

The corresponding mdx is:
Code:

SELECT
NON EMPTY {[Measures].[Unit Sales]} ON COLUMNS,
NON EMPTY {Hierarchize({[Customers].[All Customers]})} ON ROWS
FROM [Sales]

... so there is really no reason why gender would impact this query!

here is the modified FoodMart.xml, at around line 295 :

Code:

   
<Dimension visible="true" foreignKey="customer_id" highCardinality="false" name="Gender">
      <Hierarchy visible="true" hasAll="false" allMemberName="All Gender" primaryKey="customer_id">



Looks to me like a bug, yet I am quite new to mdx and mondrian and therefore I am wondering if I am maybe missing something fundamental.
Attached Images

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>