Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Expert Cube Development with Microsoft SQL Server 2008 Analysis Services

You're reading from   Expert Cube Development with Microsoft SQL Server 2008 Analysis Services Design and implement fast, scalable and maintainable cubes with Microsoft SQL Server 2008 Analysis Services with this book and eBook

Arrow left icon
Product type Paperback
Published in Jul 2009
Publisher Packt
ISBN-13 9781847197221
Length 360 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (17) Chapters Close

Expert Cube Development with Microsoft SQL Server 2008 Analysis Services
Credits
About the Authors
About the Reviewers
Preface
1. Designing the Data Warehouse for Analysis Services FREE CHAPTER 2. Building Basic Dimensions and Cubes 3. Designing More Complex Dimensions 4. Measures and Measure Groups 5. Adding Transactional Data such as Invoice Line and Sales Reason 6. Adding Calculations to the Cube 7. Adding Currency Conversion 8. Query Performance Tuning 9. Securing the Cube 10. Productionization 11. Monitoring Cube Performance and Usage Index

Dynamic cell security


We can implement dynamic security for cell security in much the same way as we have seen with dimension security. In this section we'll use the same bridge table we used in the previous sections to model the relationship between users and resellers they have access to; our requirements will be as follows:

  • Members of the role will have complete access to all measures, except for Gross Profit

  • For Gross Profit, users will only have access to values for it for resellers they have been granted access to based on the data in our bridge table

  • We also need to hide the All member of the Reseller dimension to ensure that users cannot derive values for cells they don't have access to.

We can use this expression to control Read access in the Cell Data tab:

NOT (
    Measures.CurrentMember IS Measures.[Gross Profit] 
    AND (
        StrToMember ("[Users].[User].[" + UserName() + "]"),
        Measures.[Bridge Reseller Users Count]) = 0
        OR 
        Reseller.Reseller.CurrentMember...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image