×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Average Problem !!!!!

## Average Problem !!!!!

(OP)
Hi All,
I have to calculate the AVEREAE for which the dinominator is changing
dynamically. If any one help me in this it will be a great help for me
to do something on the AVERAVE.

For example :

Day         No. of cutomers
1                5
2                7
3                10
4                16
5                1
6                7
7                0

Average for week should be (sum of number of customers for all days / 7)

When we go to next level that is Month level

Week        No. of customers    Average
1                46                            46/7
2                x                                x/7
3                y                                y/7
4                z                                z/7

This applies for month, quarter and year.

How can this average be achieved in COGNOS transformer and / or OLAP
client? We need to remember that the denominator is 7 for week, 30 for
month and so on.

regards
swamy.

### RE: Average Problem !!!!!

Dear Swamy,

You can achieve the results using the rollup options.

Define the measure.
Measure type is "column" and specify the source field for the same.
Regular rollup should be SUM or COUNT whatever is suitable for your requirement.
Time state rollup should be AVERAGE without any weight specification.

For this function to work correctly; you need to have all the dates populated in your IMR. Please ensure the same.

Let me know if this was helpful.

Regards,
Vinay

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!