Mondrian

I am working with a multi-dimensional star-schema

http://en.wikipedia.org/wiki/Star_schema

 

 

and I need a special aggregation function to sum without duplicates

see http://forums.pentaho.org/showthread.php?t=71116

 

I can see how this is done with SQL but not sure what is the best approch to implement it with Mondrian.

 

UPDATE: I was able to create the measure with relativly simle MDX. Code is attached.

 

udid 30/07/2009 - 12:51



Almost all mature database applications reaches a point when it needs to start reporting back statistical and aggregated data. The data about past behavior is usually kept in a transaction history log table and you will be tempted to write some fancy SQL that selects the records in a specific timeslot and then GROUPBY type, or country, or whatever while COUNTing, SUMming and AVGing on some values like profit or whatever make sense to your company.

 

 

Well, there's a better way ! 

udid 23/06/2009 - 00:53
Syndicate content