desktop-tutorial | GitHub Desktop tutorial repository | Learning library
kandi X-RAY | desktop-tutorial Summary
kandi X-RAY | desktop-tutorial Summary
GitHub Desktop tutorial repository
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of desktop-tutorial
desktop-tutorial Key Features
desktop-tutorial Examples and Code Snippets
Community Discussions
Trending Discussions on desktop-tutorial
QUESTION
I am trying to implement a way to use Dynamic Data Masking on a SSAS Tabular Import. By default this is not supported on SQL Server Analysis Services 2016 (as far as I know). I think I have found a way to implement this anyway using a Dynamic Row Level Security. However, my results are not as expected.
My case is an Employee table. It contains roughly 2000 rows, my test user is authorized to see about 50. I have imported the Employee table, added an Security table (EmployeeKey, Username) and set a row filter on the Employee table. More or less in the same way as the sample from Microsoft.
Additionally I have added a table named EmployeeMask which contains the same 2000 rows, with the same EmployeeKeys and the same columns. However, I have 'masked' the values of the remaining columns.
Using an MDX query impersonated as my test user I retrieve 50 employees from my Employee table and 2000 employees from my EmployeeMask table. So far so good. Now comes the part where I thought I was clever. I renamed my Employee table EmployeeAuthorized and added a calculated table Employee as follows:
...ANSWER
Answered 2020-Sep-08 at 16:55Ditch
UNION
it ignores filter context and your RLS. UseLOOKUPVALUE
to make sure the user has access to the rows onEmployeeMasked
based on if theirEmployeeKey
exists onEmployeeAuthorized
Edit your
EmployeeAuthorized
table so it contains aADUsername
column. For each EmployeeKey, store their ADUsername value that would be returned from the dax functionUSERNAME()
Edit the Role you created and go to the Row Filters tab.
Find the EmployeeMask table
Add the following DAX filter so the Role enforces users who belong to the role can only see rows on EmployeeMask if their EmployeeKey/ADUsername has a corresponding lookup authorization records in EmployeeAuthorizedy.
QUESTION
When I use SUM for example the intellisense of the editor shows me the columns of my table but when I use IF or Switch I'm not shown any column.
In this example of If (https://powerbi.microsoft.com/es-es/documentation/powerbi-desktop-tutorial-create-calculated-columns/) the column between [] works fine but when I put my column between [] I have error
error if
Any idea please?
Regards
...ANSWER
Answered 2017-Feb-06 at 12:56I can see you are creating a measure while in the tutorial they are creating a calculated column. Measures and Calculated columns behave different, while creating a calculated column the expression you are using takes the context of each row so you can reference any column directly by [Column]
.
However measures evaluate in different context so they need an aggregation function to determine the value of your columns.
EXAMPLE: Calculated Column.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install desktop-tutorial
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page