I need to get a dimension member returned as a calculated measure.
Given:
Dimensions
- Customer {ACME, EMCA, Universal Imports, Universal Exports}
- Salesperson {Bob, Fred, Mary, Joe}
- Credit Type {Director, Manager}
Measures
- Credited Value
- Value
Relationships
- The Customer is a dimension of the facts that contain Value
- The Customer, Salesperson and Credit Type are dimensions of the facts that contain Credited Value
I am trying to do the following:
Create calculated measures that will return the Salesperson with the largest $s credited in a role for a customer. e.g.
| Customer | Director | Manager | Value |
|-------------------|----------|---------|-------|
| ACME | Bob | Fred | 500 |
| EMCA | Bob | Fred | 540 |
| Universal Imports | Mary | Joe | 1000 |
| Universal Exports | Mary | Fred | 33 |
- ACME has Bob credited with 490 as Director
- ACME has Fred credited with 500 as Manager
- ACME has Mary credited with 10 as Director
I would like to use this as a calculated measure that I can use in any case where Customers are the ROW.