![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hey Group! :-) Here's my problem. I need to create a (permanent) calculated member in a cube with Measures as the parent dimension. The calculated member has to take the sum of a measure for a range of members that the user has selected as criteria in the client application (TARGIT) and show this calculated member for EACH of the selected members. In pseudo-MDX: sum({selectedMembers}, [Measures].[MyMeasure]) However - my problem is how to determine the selected members in the calculated member. Sometimes the user chooses one member, sometimes two or more - and in other cases none at all! Any help will be greatly appreciated. Please let me know, if I need to elaborate! :-) -- Michael Barrett |
#3
| |||
| |||
|
|
Hey Michael This sounds a bit mysterious...on one hand you say you want to make a permanent calculated member and on the other you say that sometimes the user chooses one member, sometimes two and so forth... As I interpret this you actually need to group some dimension members together into one group ? This isn't usually done by MDX - this is done by adding a grouping column to the underlying relational dimension table and then using this grouping column as a level in the dimension and when looking at the data in Targit. --Michael Vardinghus "Michael Barrett Jensen" <pwuh1ml02@|DeleteThis|sneakemail.com> skrev i en meddelelse news:OZQnXlQaEHA.4032 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hey Group! :-) Here's my problem. I need to create a (permanent) calculated member in a cube with Measures as the parent dimension. The calculated member has to take the sum of a measure for a range of members that the user has selected as criteria in the client application (TARGIT) and show this calculated member for EACH of the selected members. In pseudo-MDX: sum({selectedMembers}, [Measures].[MyMeasure]) However - my problem is how to determine the selected members in the calculated member. Sometimes the user chooses one member, sometimes two or more - and in other cases none at all! Any help will be greatly appreciated. Please let me know, if I need to elaborate! :-) -- Michael Barrett |
#4
| |||
| |||
|
|
Hi Michael Thanks for your reply... Well - maybe I wasn't quite clear enough in my first post. :-) Basically I need the sum of a measure for the members that the user has selected in the client application - like this: Member A: 10 (selected) Member B: 20 Member C: 15 (selected) Sum of selected members: 25. So the number 25 is what I need to get from my calculated member. :-) -- Michael "Michael Vardinghus" <michaelvardinghus (AT) notexisting (DOT) com> wrote in message news:%23QBr91QaEHA.1248 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hey Michael This sounds a bit mysterious...on one hand you say you want to make a permanent calculated member and on the other you say that sometimes the user chooses one member, sometimes two and so forth... As I interpret this you actually need to group some dimension members together into one group ? This isn't usually done by MDX - this is done by adding a grouping column to the underlying relational dimension table and then using this grouping column as a level in the dimension and when looking at the data in Targit. --Michael Vardinghus "Michael Barrett Jensen" <pwuh1ml02@|DeleteThis|sneakemail.com> skrev i en meddelelse news:OZQnXlQaEHA.4032 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hey Group! :-) Here's my problem. I need to create a (permanent) calculated member in a cube with Measures as the parent dimension. The calculated member has to take the sum of a measure for a range of members that the user has selected as criteria in the client application (TARGIT) and show this calculated member for EACH of the selected members. In pseudo-MDX: sum({selectedMembers}, [Measures].[MyMeasure]) However - my problem is how to determine the selected members in the calculated member. Sometimes the user chooses one member, sometimes two or more - and in other cases none at all! Any help will be greatly appreciated. Please let me know, if I need to elaborate! :-) -- Michael Barrett |
#5
| |||
| |||
|
|
Hi Michael Thanks for your reply... Well - maybe I wasn't quite clear enough in my first post. :-) Basically I need the sum of a measure for the members that the user has selected in the client application - like this: Member A: 10 (selected) Member B: 20 Member C: 15 (selected) Sum of selected members: 25. So the number 25 is what I need to get from my calculated member. :-) -- Michael "Michael Vardinghus" <michaelvardinghus (AT) notexisting (DOT) com> wrote in message news:%23QBr91QaEHA.1248 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hey Michael This sounds a bit mysterious...on one hand you say you want to make a permanent calculated member and on the other you say that sometimes the user chooses one member, sometimes two and so forth... As I interpret this you actually need to group some dimension members together into one group ? This isn't usually done by MDX - this is done by adding a grouping column to the underlying relational dimension table and then using this grouping column as a level in the dimension and when looking at the data in Targit. --Michael Vardinghus "Michael Barrett Jensen" <pwuh1ml02@|DeleteThis|sneakemail.com> skrev i en meddelelse news:OZQnXlQaEHA.4032 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hey Group! :-) Here's my problem. I need to create a (permanent) calculated member in a cube with Measures as the parent dimension. The calculated member has to take the sum of a measure for a range of members that the user has selected as criteria in the client application (TARGIT) and show this calculated member for EACH of the selected members. In pseudo-MDX: sum({selectedMembers}, [Measures].[MyMeasure]) However - my problem is how to determine the selected members in the calculated member. Sometimes the user chooses one member, sometimes two or more - and in other cases none at all! Any help will be greatly appreciated. Please let me know, if I need to elaborate! :-) -- Michael Barrett |
#6
| |||
| |||
|
|
I actually still don't see the need for a calculated member. In some front ends (like targit) you can select A, B, and C (multiple selection) specified below in a criteria field and then the cross tab will show the sum of these 3. However...when using multiple selections you cannot do drill through to detail transactions using Targit / Analysis Services - so if you plan to do this you need another way. If it's some kind of permanent grouping you're looking for I very much prefer the method I suggested with putting a column into the dimension table and using this column to create a dimension (perhaps virtual) in Analysis. Like this you can do drill through. With you're calculated member you will not be able to do drill through either... --Michael Vardinghus "Michael Barrett Jensen" <pwuh1ml02@|DeleteThis|sneakemail.com> skrev i en meddelelse news:uKFHqKRaEHA.3420 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi Michael Thanks for your reply... Well - maybe I wasn't quite clear enough in my first post. :-) Basically I need the sum of a measure for the members that the user has selected in the client application - like this: Member A: 10 (selected) Member B: 20 Member C: 15 (selected) Sum of selected members: 25. So the number 25 is what I need to get from my calculated member. :-) -- Michael "Michael Vardinghus" <michaelvardinghus (AT) notexisting (DOT) com> wrote in message news:%23QBr91QaEHA.1248 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hey Michael This sounds a bit mysterious...on one hand you say you want to make a permanent calculated member and on the other you say that sometimes the user chooses one member, sometimes two and so forth... As I interpret this you actually need to group some dimension members together into one group ? This isn't usually done by MDX - this is done by adding a grouping column to the underlying relational dimension table and then using this grouping column as a level in the dimension and when looking at the data in Targit. --Michael Vardinghus "Michael Barrett Jensen" <pwuh1ml02@|DeleteThis|sneakemail.com> skrev i en meddelelse news:OZQnXlQaEHA.4032 (AT) TK2MSFTNGP11 (DOT) phx.gbl... Hey Group! :-) Here's my problem. I need to create a (permanent) calculated member in a cube with Measures as the parent dimension. The calculated member has to take the sum of a measure for a range of members that the user has selected as criteria in the client application (TARGIT) and show this calculated member for EACH of the selected members. In pseudo-MDX: sum({selectedMembers}, [Measures].[MyMeasure]) However - my problem is how to determine the selected members in the calculated member. Sometimes the user chooses one member, sometimes two or more - and in other cases none at all! Any help will be greatly appreciated. Please let me know, if I need to elaborate! :-) -- Michael Barrett |
![]() |
| Thread Tools | |
| Display Modes | |
| |