COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: S2000 on 28 Feb 2011 10:01:21 AM

Title: DMX - Relative Dates
Post by: S2000 on 28 Feb 2011 10:01:21 AM
I've built a date dim for an MDX cube in FM.
It's a simple thing with Year, Month & Day and it works fine.
But, I lack relative date options.

In my staging query subject I have relative categories for current month, current day, last month, rolling 6 months and so forth – but I'm not sure of the best way to get them into the cube and into Analysis Studio.

Obviously in transformer it's just a case of setting a dim as a date and all the relative date categories are magically added – is there is a similar feature in FM?
Or do I need to map all my relative date categories separately.

I know it's a bit of a vague question, if anyone can point me in the right direction or point me at a decent bit of documentation I'd be most grateful.
If you can help me there may be a cookie in it for you.
Title: Re: DMX - Relative Dates
Post by: blom0344 on 01 Mar 2011 02:45:19 AM
Check:

http://www.cognoise.com/community/index.php/topic,12936.0.html
Title: Re: DMX - Relative Dates
Post by: AussiePete2011 on 02 Mar 2011 06:33:29 PM
IBM Proven Practices is a good place to check as below

https://www.ibm.com/developerworks/data/library/cognos/cognosprovenpractices.html#modeling

http://www.ibm.com/developerworks/data/library/cognos/page90.html

Cheers
Peter B
Title: Re: DMX - Relative Dates
Post by: S2000 on 03 Mar 2011 04:30:06 AM
I've just has a look through that second document – it fills me with dread.
I've always treated facts and dims as very separate items.
Forcing the relative times to be used as measures seems quite restrictive.

Whenever I wanted to add a new relative date category I'd have to replicate it across every measure. I'm also not sure how it would work with multiple measures nested under a year and drilling into the year.

I think I'll still with true relative dates rather than try the relative-dates-as-measures idea.