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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running total after sorting

Status
Not open for further replies.

anuragvijay

Technical User
Jun 19, 2003
25
0
0
US
is it possible to write a MDX expression to create a calculated member to calculate a running total on a measure but after sorting it in ascending order?
 
Do you want the calculated member to be something like a sum of the top x customers?

Stick to your guns
 
Hi pabloj,

This is what i want:

if column A has 3 values: 1,2,3 then the calculated member column (the one having the running sum) should have the following values: 1, 3, 6

that is: 1, 1+2=3, 3+3=6

thanks
 
try something like
Code:
([Dimension].CurrentMember, [Measures].[Your Measure]) + ([Dimension].PrevMember, [Measures].[This Calc Measure])

"Shoot Me! Shoot Me NOW!!!"
- Daffy Duck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top