Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI! I have a cube that has both Canada & US data. I have managed to filter out the Canada data from the Rows but my ALL value (which I still need) includes both Canada & US values. How do I write the MDX qry so that only the US data is in the ALL?

If there is a better way to filter PLEASE let me know. I tried the Filter but couldn't get it to work.

Here is my MDX Qry

SELECT [Measures].[ServiceCallsCM]
EXCEPT({[Dim Organization].[Service Area Nm].Members}, {[Dim Organization].[Service Area Nm].&EAST, [Dim Organization].[Service Area Nm].&WEST, [Dim Organization].[Service Area Nm].&CENTRAL}) ON ROWS
FROM (SELECT ({[Dim Date RS].[Fiscal Year Month].&[2014-3]}) ON COLUMNS
FROM [CC_FIELDSERVICE_RS])

the results look like this:
ServiceCallsCM
All 168498
ALABAMA 2993
ARIZONA/NM 4733
ATLANTA 6207
CENTRAL CAL 3398
CENTRAL FLORIDA 5361
CHICAGO 4217
DALLAS 6929
HOUSTON 6539
INDY 4680
KS/MO/NE 4134
LOS ANGELES 5461
LOUISIANA 4861
MARYLAND 4332
MEMPHIS/LITTLE ROCK 4452
MICHIGAN 4669
MINNESOTA/DAKOTA/IA 3469
MOUNTAIN STATES 3138
NEW ENGLAND 4749
NEW JERSEY 2899
NEW YORK 3172
NORTH FLORIDA 5185
NORTHERN CAL 5973
NOT KEYED 120
OHIO 4759
PACIFIC NORTHWEST 4600
PHILADELPHIA 3068
PITTSBURGH 3476
SAN ANTONIO/AUSTIN 7219
SAN DIEGO 5752
SOUTH FLORIDA 4065
ST LOUIS 3916
TENNESSEE 3469
UPSTATE NY/EAST PA 3514
VIRGINIA 3608
WEST TEXAS 2984
WISCONSIN 2765
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900