Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Rollup Expression Help (Cross product)

Status
Not open for further replies.

CharlieDigital

Programmer
Feb 13, 2004
2
US
Hi, I'm trying to put together a custom rollup for a cube and having a hard time with it.

olap_sample.gif


This image is a snapshot of the data in the cube that I'm working with.

As you can see, the default aggregation (sum) is being applied. My goal is to get the number in the blue box (with the gray background) to be equal to the cross product of the two arrays (vectors) in red divided by the number in green (the sum of the entries from the vector on the right).

So in this case:
Blue Box = [1.5 .4 .6] x [.02 .07 .07] / 2.5

or

Blue Box = (1.5*.02 + .4*.07 + .6*.07) / 2.5


Any assistance would be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top