If you don't need them at all, just filter them out in the SQL (e.g. "where
year <> 0 ..."). If you *DO* need the members in the dimension (for
instance, I've built cubes where facts may be associated with months,
quarters, &/OR years) then base the dimension on a view rather than the root
table. Use SQL like:
SELECT Case WHEN [YEAR] = 0 then 'N/A' else cast([YEAR] as varchar) end
as MemberName
FROM ....
Assuming your table has a "YEAR" column. Alternately, you could return an
empty string (instead of N/A) for the "unwanted" members and set the
dimension to "hide members with no name".
GW
"Brian Altmann" <anonymous (AT) discussions (DOT) microsoft.com> wrote
Quote:
You could use a sql case statement in the member name column property.
However it would really be best to create a time dimension table (or
view).
HTH,
Brian |