Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • 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.

Students Click Here

Average Problem !!!!!

Average Problem !!!!!

Average Problem !!!!!

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.


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.


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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close