rls problems
6 TopicsReporting on Degenerate dimension from 2 fact tables with a dimension in between
Hello, I have 2 fact tables (user, sales) and a dimension table (loaction) in between. Now I need to report on a degenrate dimension on one of the fact table (called brand in sales), a measure on the same fact table (count rows in sales) and a measure on the second fact table (count of related users). Desired table is what I am getting when I join the dimesnions and metrics together. However as you cab see the user count is the same for all brands. But I really would like to see is what are the count of users for those locations from where the brands were purchased. So I would like something like this. As you can see adidas was bought frpom location 1 which has only 2 users. I cant create a many to many relation between users and sales as I have a RLS set up using profile and staff. Is there any way I can solve this. Please please please help. johnt75 , MFelix , OwenAuger Regards, MeenaSolved675Views0likes2CommentsHelp on RLS in Power BI
Hi Team - We have tabular model (screenshot below) and enabled RLS on the "DimSubsidiary" table, which is applying security filter to the "FactSales" tables. However, we have a requirement to show sales different when slicer is placed on Geography. Example: As per Sample Data below, User A is allowed to see US and UK Subsidiary Data For User A: Total Sales (Subsidiary=US) = 100 + 600 ( Row 1 + Row 2) . This is working as expected. Total Sales (For Geo=US) = 100 ( because of RLS user A can see Row 1 and Row 2) and For US, it's 100. but User A has access to US subsidary , they should be able to see Revenue for US Geography i.e they should see sales as ( 100 (Row1) + 500 (Row 3) + 700 (Row 5) Beacuse of RLS in place this will not work Can you please suggest how to proceed further in order to show 1300 as sales for User A when we select Geo="US" ? Do I need to create any bridge table based of Fact? Data Model Thanks, Abhiram612Views0likes2CommentsOption to Disable/Bypass the RLS on active relationship
Hi Team - We have tabular model (screenshot below) and enabled RLS on the "DimCustomer" table, which is currently security applying the filter to both the "FactSales" and "FactCompute" tables. However, we have a requirement to disable RLS between the "DimCustomer" and "FactCompute" tables, while still keeping it enabled for the "FactSales" table. Upon reviewing the available solutions, I have come across below approaches, but it has certain disadvantages. Please suggest if there any other alternative options 1) Implement RLS on FactTable Implement RLS on FactSales Table Only Disadvantage: FactSales is very big , it occupies 70 GB in our data model. I think implementing RLS on Fact will slow down the performance. 2) Clone the Customer Table Have two set of Customer Table and enable RLS on One Customer Table. Disadvantage: If we want to show Sales and Cores by customerName in single chart then we will end up with customerName from different tables RLS Code On DimCustomer: VAR CUSTOMERS = CALCULATETABLE ( VALUES ( 'DimUser'[SubsidiaryID] ), 'DimUser'[UserAlias] = USERPRINCIPALNAME () ) RETURN 'DimCustomer'[CustomerID] IN CUSTOMERS Thanks, AbhiramSolved1KViews0likes1CommentRow level Security on multiple dimension alias table
Hello All, We have a current setup of DW tables one fact which is connected to multiple dimension table, for an example lets take Fact Sales which is connected to multiple Dim Agents tables like Dim-Agent(Who sold the product) , Dim-Agent(who billed the product), Dim-Agent(who serviced the product). which is connected to the fact table different columns like agent_sold, agent_billed, agent_servd. The issue happens when i try to setup row level security for the Agent table, so i tried putting the below code to all the agent table in the row filter under Roles. ='Dim - Agent_sold'[Agent NT Login]=MID(USERNAME(),FIND("\",USERNAME(),1)+1,LEN(USERNAME())-FIND("\",USERNAME(),1)+1) when it is applied to only one table it works fine, but when i started applying to all the agent table it is doing like a inner join and showing the result. Kindly let me know how to handle this situation. Let me know if you need further information ThanksSolved1.6KViews0likes4CommentsRLS string transformation
Hi All, I am using Embeded power BI and in that RLS we are using. In the username() i am getting a string and i need to filter the data. In the RLS i get the list of values in the form of a string. I am getting additonal characters which i don't want in order to filter the data. Could you please help which DAX function will work. I am getting list of values as a string: "'ABC','TDEF','HIJ'" and i should have like this "ABC","TDEF","HIJ" Means i need to exclude the first and last character of the double quotes and replace single quotes with Double quotes. The list of values will increase. it should work dynamicallySolved718Views0likes2CommentsRow Level Security with Multiple levels (Complicated)
Hi, I am looking to implement RLS for multiple levels. I have 2 tables as below. 1) Groups 2) Tasks Groups table will have , Group name and Member email. And tasks will have below columns Upon login by the user i want to filter my report in below ways. Rule: 1) all the records should be visible wherer Isrestricted = NO for every user. Rule 2: 2) Up on login by User, Rule 1 above should be applied and also, Isrestricted group = Yes and it should look at group table who is the user and how many groups the user is part of and only those groups in Tasks table should be filtered. Rule 3: 3) Irrespective of above, who ever part of submitted by in the tasks table they have to see all the submitted by records along with Isrestricted access = NO. I have tried relaly very hard to crack this and finally coming here for help from great minds. Attaching the PBIX for your perusal. Appriciate your help guys. https://1drv.ms/u/s!ApY7Qk9reuaNiw9L76Qr3dkIwHC6?e=LAe1al Pragati11 amitchandak ValtteriN Greg_Deckler GilbertQ MikeJohnsonZA AlexisOlsonSolved4.6KViews0likes8Comments