SSAS Dynamic Dimension Security based on another dimension attribute <p>In my project I have to apply security based on a dimension attribute. I think the best way to explain my scenario is with an example, if you need more info please request me and I'll love to told you if it will help me find a solution.</p> <p>I have some main dimension, the dimcustomer, dimseller, fact, data and geographic. The fact table are related with dimseller ids, the dimcustomer is related to the dimseller based on one dimseller specific attribute(CNPJ)(another dimensions that i didnt described are related the same way).</p> <p>So my goal is to apply a role security based on the dimseller CNPJ, so then when the user related with that seller trys to browse data he will be allowed to view only the data that are related to his seller CNPJ.</p> <p>Table example:</p> <pre><code>DIM Seller: DIM Customer FactTable id name cnpj id name dimseller.cnpj dimseller.id dimcustomerid measure 1 ME 1234 1 guest1 1234 1 1 50,00 2 you 5678 2 guest2 5678 2 2 100,00 </code></pre> <p>So if i login as ME i will be able to se that i have the customer guest1 with one sold product that was sold by 50 bucks.</p> <p>Got my point?</p> <p>What is the best way of doing it?</p> <p>For now I'm considering the following guide: <a href="http://varadarajbhat.wordpress.com/2010/04/28/forms-based-authenticationfba-configuration-for-performancepoint-2010-and-sharepoint-2010-using-claims-authentication/#comment-41" rel="nofollow noreferrer">Claim Authentication with dynamic dimension security</a>, but at that way I should define it attribute by attribute. </p> <p>Is there a way that i can define this security need? I can easy filter the data using sql statements, but i have no ideia how i can apply this kind of security in the ssas.</p> <p>Thank you guys anyway!</p>