COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: littlevoices on 29 Jun 2008 02:43:36 PM

Title: Simple question: Struggling to model correctly data for aggregating
Post by: littlevoices on 29 Jun 2008 02:43:36 PM
Hi all,

I've been trying to teach myself the basics of Cognos (I work for big blue and I like to know a little about some of our more interesting product purchases) and I am struggling with how to correctly model the following data in Framework Manager 'correctly', below is a simplified version of what I am trying to accomplish;

My single source table - each organisation provides a figure at a 15 minute interval.
DateTimeSourceFigure
12th Nov 2007, 10:15org117
12th Nov 2007, 10:15org217
12th Nov 2007, 10:30org111
12th Nov 2007, 10:30org224
12th Nov 2007, 10:45org116
12th Nov 2007, 10:45org220

My struggle is, I want the data to appear in the following format - in Query Analyser;

At a 15 minute level - essentially the two organisations figures 'summed'
DateTimeFigure
12th Nov 2007, 10:1534
12th Nov 2007, 10:3035
12th Nov 2007, 10:4536

At an hourly (and then up to day/month/year) level - essentially the average of the two figures summed together
DateTimeFigure
12th Nov 2007, 10-1135
12th Nov 2007, 11-12....

I'd also like to be able to drill into the 15 minute level to get the individual organisation information.

My struggle is how to organise this with regards to Dimensions, Determinants and Aggregate rules.

Currently I have;
- I've played around with a number of combinations of determinants at the source table level, without any joy
- Each organisation reports their figure once every 15 minutes and only reports the figures once.

I think I could probably change the database query quite simply to group by datetime... but I'd lose the drill down ability. The best I have been able to create myself is an average at all levels (so it effectively halves my data), or a sum of all levels (no use) and so on...

Since this is a learning experience, how should I be modelling this data, and if this is explained somewhere in one of the many manuals feel free to direct me there as well? I know I could 'fudge' it in several ways (doing a custom calculation etc), but I'm sure there must be a simple and correct way to do this.

Thanks for any help or advice,

lv
Title: Re: Simple question: Struggling to model correctly data for aggregating
Post by: blom0344 on 30 Jun 2008 01:06:13 PM
I do not have a real solution for you, just a tip that averages are non-additive measures. You cannot 'design'  a roll-up mechanism that is able to compute averages the way totals are rolled up.
You will always have to perform the rollup of the individual components and perform the division at the end.

 
Title: Re: Simple question: Struggling to model correctly data for aggregating
Post by: littlevoices on 01 Jul 2008 01:30:53 AM
blom0344,

Thanks for your reply - does that mean that I would be creating a valid model by effectively doing the aggregation at a database level through a new view for example, rather than relying upon Cognos to do this addition? If so, I'm more than happy to since I'm quite comfortable within the DB land.

Thanks for your reply though - it's appreciated.
Title: Re: Simple question: Struggling to model correctly data for aggregating
Post by: blom0344 on 04 Jul 2008 04:19:42 AM
To the best of my knowledge (not really much experience with DMR/cubes) drilling will work with measures/facts that are additive.
Percentages are non-additive (at least the outcome will not make any sense), so need to be precalculated for every level or perhaps defined as calculated objects from AS