Hi, I am new to MDX, has built some calculated measures which are pretty much straight forward.
Currently, I am working on a new calculated measure using existing measures and dimensions.
Here are the requirements, Program UV is an existing measure, Referrer Domain, Tracking Code, Content Type are dimensions.
Program UVs that fit ANY of the following criteria:
- Referrer Domain Description equals "v9"
- Tracking Code Type equals "v6"
- Tracking Code Source equals "v1"
-Tracking Code Source equals "v2"
- Tracking Code Source equals "v3"
- Tracking Code Source equals "v4"
- Tracking Code Source equals "v5"
- prop4/evar4 (Content Type) equals "v7"
And EXCLUDE any UVs that fit the following criteria :
- Tracking Code Type equals "v8"
SQL pseudo code:
SELECT COUNT(Program UV) FROM A
WHERE
(
trackingcodesource = 'v1'
OR trackingcodesource = 'v2'
OR trackingcodesource = 'v3'
OR trackingcodesource = 'v4'
OR trackingcodesource = 'v5'
OR TrackingCodeType ='v6'
OR [Content Type] ='v7'
OR ReferrerDomainDescription = 'v9'
)
AND TrackingCodeType NOT IN ('v8')
Tried using cross join between dimensions, it works only if I use two hierarchies, any thing more than two it fails.
Please help.