If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

current day previous day and difference

Started by anilkumar, 20 Jan 2010 06:31:39 AM

Previous topic - Next topic

anilkumar

Hi

iam  using dimensional data , cubes as a source,

i need to create current day, previous day and difference(current day- previous day)

bother are in different hierarchy.

Thanks & Regards
ANIL K .MARRI


MFGF

Hi,

These really need to be from the same hierarchy.  Try the following:

1. Add a Query Calculation - call it Current Day - with the expression closingPeriod([Day level from your time hierarchy])
2. Add a second Query Calculation - call it Previous Day - with the expression lag(closingPeriod([Day level from your time hierarchy]),1)
3. Add a third Query Calculation - call it Difference - with the expression [Current Day] - [Previous Day]

MF.
Meep!

anilkumar

#2
Hi MFGF

Thank you very very much,   spending  u  r precious time  for all.

i need this from different Hierarchy



Thanks & Regards
ANIL K .MARRI

MFGF

Meep!

anilkumar

Hi MFGF

8.3 v

Thanks& Regards
Anil k .marri

MFGF

Hi,

Unless you are on 8.4, you cannot bring in members from different hierarchies within the same dimension.  This was added as an enhancement to the product for the 8.4 release.  You either need to upgrade, or use MDX functions (closingPeriod, lag) to achieve the desired result from a single hierarchy.

MF.
Meep!