Professional Documents
Culture Documents
Prepared By:
OVERVIEW
We need each user to access a specific dataset that other users can not access so we needed
to secure the datasource by roles using sql service analysis services (SSAS) and visual studio
tool.
Goals
1. Ability to make data masking using (dax , M language).
2. Ability to make row level security (hides tables , hide columns).
3. Ability to edit in the tables (remove columns , add columns , change values).
PREREQUISITES
1. Sql server analysis services.
2. Visual Studio.
3. Power bi desktop.
STEPS
1. Install SSAS (sql server analysis services).
first need to have Sql Server Data Tools installed on your server. After you have that installed, you
can open Sql Server 2016 installation Center.
Clicking that opens the following prompts. We want to add features to an existing database, so select
the top option.
Click the box to add to an existing instance, since we already have a Sql Server instance installed.
Select
Tabular Mode, since that is the mode we want to install. You need to add users who have access to
manage the services, below I added the Administrator. There is also a Data Directories tab. You can
change where the files, logs, temp directories are located. I kept them the default, but you probably
want to change them on a production instance.
After clicking next, you get the summary screen and you are ready to install SSAS on your server.
In a couple minutes if all goes well, you will get the following success message.
If you check your services again, you will see that the SSAS services are now installed and running.
5.
After Creation the project set Compatibility level to SQL Server 2019.
6. Import data
source from
the
database.
11. You can edit tables using dax language from the formula bar.
12. You can use a query editor to edit tables and make data masking.
1. Right click on the table you want and select table properties.
2.on edit table properties click design then query editor will open.
3.click import after editing that table.
4.process the partitions then process the table to update the tublar model.
13. Deploy tublar model after editing tables and adding roles to secure the
datasource.
14. the deployment operation should appear without any errors like that.
15. Now you can access your new dataset with a specific user which has a specific
role from power bi desktop.
2.Click on Get data to get the secured Dataset from the tubular model.
5.To know the deployment server name go to the tubular model select Solution Explorer
then right click on the model and click on properties.
6.the tubular model will appear with the data and you can load it or click on transform
data if data contains queries changes then apply the model.
7.now the user is authorized to view the secured dataset and he can use it and make
reports.