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


How to generate random numbers in MSTR by 510diva
Posted: 22 May 03

This function returns a random value between two arguments. The syntax is:
Randbetween(x, y)

[M1] = Sum([Unit Cost]){~+}
[M2] = Randbetween([M1] * 0, 1)

The metric [M1] is needed because the [randbetween] function needs to have a dimensionality, and it is provided by [M1]. [M2] will produce a uniform random number between 0 and 1 for each row.
IMPORTANT: When this approach is used to generate random numbers, a risk of an overflow in the MicroStrategy Intelligence Server's memory is present when large amounts of data are retrieved. This happens since all the data needs to be brought to the MicroStrategy Intelligence Server to perform the calculation.

Back to MicroStrategy, Inc. solutions FAQ Index
Back to MicroStrategy, Inc. solutions Forum

My Archive

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