![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My cube contains dollar amounts of transactions with a measure [Amt]. The cube contains a dimension called [Transaction Type] that provides a breakdown of how the transactions were processed. I want to create a calculated measure that provides the sum of [Amt] for all transaction types except a small set of them -- and I don't want to list the transaction types I do want to include. But I will here just for the purposes of being clear in my example. Suppose the [Transaction Type] dimension includes members 1, 2, 3, 4, ...and so on... , 25. I want the calculated member to return the sum of [Amt] for all transactions that do not have Transaction type of 11, 12, and 13. Also, I expect to hide the Transaction Type dimension in the cube because I want to control which slices of this dimension to present. In the end, I will create several calculated measures that provide a variety of combinations of transaction type values. Thanks for your help, David |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Ohjoo, Thanks for answering. I'm still having problems, however. The second expression looked perfect, but it did not do what I expected. It returned a result greater than the [Amt] measure even though it was suppose to filter the measure. I tried an additional experiment. I removed the Except function and just used the expression Sum([Transaction Type].AllMembers, [Amt]). I expected this expression to return the same as [Amt], but it provided a substantially greater number also. I've worked with MDX before (but not for awhile). I thought I understood what was going on, but I now believe I'm missing something fundemental. Can you provide insights? -David |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Ohjoo, Many thanks for your help. I got your suggestions to work. I don't know why the expression in my second message was not working, but I've accomplished my primary goal. Thanks again! David |
#7
| |||
| |||
|
|
Do you mean Sum([Transaction Type].AllMembers, [Amt])? If [Transaction Type] dimension has several levels including all level, the calculated results can be duplicated as many times as the number of levels, because AllMembers return all members from the dimension. Ohjoo Kwon |
![]() |
| Thread Tools | |
| Display Modes | |
| |