RE: MDX Help! -
06-02-2004
, 03:51 AM
Hi Mark
Since LINKMEMBER works by matching keys, I take it you're sure that all of the members on FlatAcct.[Rep Nbr] (and ABCD in particular) have equivalent members with the same key on Acct? What happens when you run a similar query in MDX Sample, ie something like
WITH MEMBER MEASURES.TEST AS 'MEMBERTOSTR(LINKMEMBER(FlatAcct.CURRENTMEMBER, Acct))
SELECT {MEASURES.TEST} ON 0
FlatAcct.[Rep Nbr].MEMBERS ON
FROM MYCUB
If you see errors in any cells, click on the cell and tell me what the message is. Also, what have you set for the key uniqueness properties on the various dimensions/levels?
Regards
Chri
----- Mark wrote: ----
Hi, I think I need some help with an MDX equation, but I think some background may also help. (SP3 is installed on Analysis Services, FYI
1. This is the MDX
StrToSet(iif(Username = "", "{}",SetToStr(Generate(NonEmptyCrossJoin([FlatAcct].[Rep Nbr].Members, {StrToMember("[Users].[All Users].[" + UserName + "]")},1), {LinkMember([FlatAcct].Currentmember, [Acct])})))
2. I'm using this to do dimension security on the Acct dimension. When I built it in a sample data set it worked just great. When I let lose the entire dataset, it choked. I've rebuilt all the objects, thinking I'd done something different. I even used my sample set and just changed the data source to look at the big data source... but still I get the same error
Dimension Security Syntax
Formula error- cannot find linked dimension member for "ABCD" - in the LinkMember(<object>,<object>) functio
Do you still want to use this expression for dimension security
... So i've tried several things - originally the Rep Level in the Acct dimension had a long name and key field (which was the same key from the flatacct; and the user rights table). Thinking that might be the problem, I changed the Rep level to have only the RepNbr as both name and key
... After I did that I can run this equation in the MDX editor and not get the error, but it still appears in the dimension security screen.
(I had that problem in the past, but when I applied SP3, it worked great... SP3 is INSTALLED on this server)
I have two users in the permissions cube - me and one other person. The other person has two reps and I have just one
So what I think I need help with - how can I deconstruct the MDX to help me identify why the Acct dimension doesn't recognize the ABCD rep - I know it's there, I can see it in the viewer, and I can query the underlying table directly and it's there too.
I would really, really appreciate any help. I've already missed one deadline on demonstrating the security solution for this project and it would be great to be able to explain a solution
Thanks
Mark |