I have multiple dimensions (around 20) and 4 fact tables in my cube. I am implementing dynamic security in my cube, so only logged in user will see his information.
I have a person dimension, which stores user information.
I have a shipper dimension , which stores shipper information.
Person dimension is connected to Fact table A and Shipper is also connected to Fact table A.
Shipper Dimension is also connected to Fact Table B.
Now in dimension usage tab i connected Person dimension to FACT table B measure group using many to many relation via Fact Table A measure group.
I wrote below code block in Shipper dimension to implement security , under Dimension data tab -
exists ({[Shipper].[SHR Number].members}, strtoset("[Person].[Person number].[" + username() +"]"), "Fact Table A")
Its is working fine when run it as mdx query, using select command. I can see all measures (both from fact A and fact B) based on my ID permisisons.
But the issue is when I browse cube, I can see only Fact Table A measures and NOT FACT B measure.
FACT B measures comes as NULL.
I referred below link -
http://bifuture.blogspot.com.au/2011/09/ssas-setup-dynamic-security-in-analysis.html
PLEASE HELP