![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| SELECT |
|
I have a problem coming up with an MDX statement for the following situation. Given the following dimension Customer Gender City JobTitle MaritalStatus How do I view the count of Gender by MaritalStatus where City='Seattle' OR JobTitle='Programmer'? in SQL I would write: SELECT COUNT(*) FROM Customer WHERE JobTitle='Programmer' OR City='Seattle' GROUP BY Gender, MaritalStatus My current solution is: FILTER(CROSSJOIN([JobTitle].[All].Children,[City].[All].Children), [City].MemberValue='Seattle' OR [JobTitle].MemberValue='Programmer') Any ideas how I can improve this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |