Power BI Row-Level Security And Where To Filter

  Рет қаралды 154,263

Guy in a Cube

Guy in a Cube

Күн бұрын

In this video, Patrick looks at Power BI Row-Level Security And where to filter. He found that, after applying dynamic security, customers showed up in a slicer when they should not have. Challenge accepted! He walks through Power BI Desktop to show how he fixed his Row-Level Security problem.
LET'S CONNECT!
Guy in a Cube
-- guyinacube.com
-- / guyinacube
-- / guyinacube
-- Snapchat - guyinacube
-- / guyinacube
**Gear**
Check out my Tools page - guyinacube.com/tools/ #powerbi #guyinacube

Пікірлер: 193
@GuyInACube
@GuyInACube 6 жыл бұрын
One point that we forgot to mention is that you should add your role filters on a dimension instead of the fact table from a general perspective. I'm sure there may be some circumstances where that isn't true, but in most cases you should add your filters there. Which is what was shown in the video, just forgot to mention that point. By doing it on the dimension, you fix the slicer issue and the filter context will flow to the fact table.
@sireeshaavvari
@sireeshaavvari 5 жыл бұрын
The bidirectional relationship approach you showed, is it only to get the Customer slicer right? And the actual fact data is getting filtered by the DAX filter on Sales Territory dimension? What if I don't have Username on my dimension table and all I have is the bridge table with man to many between sales territories and users? Can I use bi-directional filter option between the bridge table and Sales Territory dimension? In that case, what's the DAX filter I need to apply either to Sales Territory dimension or Internet Sales fact?
@sireeshaavvari
@sireeshaavvari 5 жыл бұрын
Also I do have multiple bridge tables that I cannot combine into one because they are at a different grain. A user can be present in one or more of these bridge tables. In this scenario can we use bi-directional filter approach to filter the data? I used the lookupvalue method and it's very slow.
@eivindhaugen8640
@eivindhaugen8640 4 жыл бұрын
Thank you for a great video Patrick! In a star scheme model, there is a challange on how to filter multiple dimensional tables (such as Product and Sales Territory in your model). I assume this will be a common challenge for many users. Is it possible to share a video with a step 2 best practise for more Advanced filtering of Product and Sales Territory in your model? Made a solution with multiple SecurityTables that works, but not sure if it is best practise.
@khembeegoo8930
@khembeegoo8930 4 жыл бұрын
Hello Patrick / @Guy in a Cube, Very interesting video, but can you do another video on where to publish a power bi with RLS, especially a workspace provided on MS Teams. I did publish a power bi with RLS on a MS Team workspace, but the people in the team could see all the data because the RLS did not applied. When i tried to publish on "My workspace" then add a tab on the desired Team, it then worked. Can you explain further on this please. This would help a lot. Thank you in advance :)
@davegosselin3744
@davegosselin3744 3 жыл бұрын
Thanks for the demo Patrick! Just an FYI for everyone - we have been using the first method for a couple years and its been working great. But we recently produced a large report that was taking a while to render. We used your second method (removing the link between the Bridge table and the dimension table and adding the DAX expression to the Security role) and it sped up the rendering significantly (from 25 sec to like 5 sec)! Lesson being that the plan used by PBI may vary depending on the data and the Role paradigm used.
@maciejsartys
@maciejsartys 4 жыл бұрын
"do a quick Bing search" - nice try Microsoft :D
@haroon420
@haroon420 4 жыл бұрын
Lmao. My thoughts exactly.
@felipeturino5890
@felipeturino5890 5 жыл бұрын
Great video, I work in a car company in Brazil and at this moment, I have a Challenge of converting all the sales report from excel to Power BI, I have 80% of the job done and that is exactly what I need to finish my project, make the reports available by dealer with the security level. This concept of a bridge table, I used a lot, now I know there is a name for it, I use this to create a relationship in tables where the products have different names. Example Table A: Product A 18 Product A 19 Table B: Product A 2 Product A 1 to make this relationship possible, I need first to create groups from the Products names that are Product A and that is it and for the Relationship, a Bridge table with a single source Product A, and the group Product A from Table A and B were related with this Bridge table.
@solomonnorman5126
@solomonnorman5126 4 жыл бұрын
Thank you for you content and tutorials. And thank you for delivering it in such as user-friendly way.
@williamwright8656
@williamwright8656 4 жыл бұрын
How I've tackled this in the past is to shift that LOOKUPVALUE part into an actual column in the Customer table. That way you've got a column that shows who the account manager is, and then you can just apply RLS on that new column. It's quick, performs well, and is super easy to maintain as well!
@senselessbkrow6803
@senselessbkrow6803 5 жыл бұрын
@rajarshimaity6838
@rajarshimaity6838 Жыл бұрын
Hey Patrick, Good Morning. First of all, your channel is a blessing for power bi enthusiasts. i mean honestly at first i thought what the heck is this tool ? why so complex ? but then i took a course on udemy and the instructor gave a shout out to your channel for reference. After that this tool became a piece of cake for me. well not all the topics but the ones that i have understood. Well i am a Tableau Developer and i was also involved in real time work with power bi as well. Normally in terms of tableau, user filter or RLS is pretty easy to implement. Tableau create user filter like a set and we can implement this user filter set as a IN/OUT filter to all worksheets. Done, all the filters are updated with RLS meaning all the filters will now change when we change the RLS values. for example if user1 login then all the filters will show user1 data only. Here RLS implemented on visual or worksheet and to the filters as well. So i was hoping if in power bi, there happens to be something like this apart from bridge and lookup concept ? what i understood is RLS is more like a table level filter which means it doesn't update slicers. but; this question might sound very stupid, as we have a data model set up between dimensions and facts, when we create a role isn't that supposed to filter other columns from other tables present in that model as well.
@mattl1676
@mattl1676 4 жыл бұрын
Thank you Patrick. This was a problem that I was going to have to deal with soon.
@GuyInACube
@GuyInACube 4 жыл бұрын
Happy to help! Thanks for watching! 👊
@saratuncten8257
@saratuncten8257 5 жыл бұрын
Just recently started delving into Power BI and stumbled upon your videos. Just wanted to say how great and helpful you guys are! Thanks and keep up the great work!
@GuyInACube
@GuyInACube 5 жыл бұрын
Thank you so much Sara! Appreciate you watching and learning. 👊
@chimerablack4913
@chimerablack4913 4 жыл бұрын
I wonder how many takes he does on the "Yooooooo!" before he decides on "the one". XD
@nishchalpunj6145
@nishchalpunj6145 9 ай бұрын
Hi Patrick, Very nice video, but where can I find more about your bridge table used in this video. I got a similar problem statement with multiple clients logging in via RLS.
@vinestim
@vinestim 3 жыл бұрын
Good job, sir!! This is the video I needed! Love it!
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
I have got an issue, if I have Single selection in the filter (in your case customer Full name) then by default power bi selects the first member (in your case Aaron Adams). So When User role Adams Logs in, it shows Aaron Adams + List of customers Adams Role can see. But still Aaron Adams is displayed Because of single selection and he is the default member. As soon as I select any other member in customer filer , Aaron Adams disappears. Please help me how to solve this issue. Note: I need to have Single selection in the filter otherwise I need to change lot of measures.
@sagarchaurasia3342
@sagarchaurasia3342 3 жыл бұрын
Thankyou PATRICK, having one more query i.e how do we see the previous days data from the selected date (eg:. if I selected any of the date from the slicer i wanted my bar chart/coloumn chart visual which is having dates on its axis to show 7days previous data from the day I have selected in a slicer)
@wilfredkluin5209
@wilfredkluin5209 4 жыл бұрын
Hey Patrick. This video helped me a lot. I've implemented Row level security with the 'lookup' method and extended it with multiple criteria and it works well. Thnx!
@GuyInACube
@GuyInACube 4 жыл бұрын
Woot! Awesome to hear 👊
@asifrehman4214
@asifrehman4214 3 жыл бұрын
@Wilfred Kluin Sir Can you share the code...I am working On-Premises PBI Report Server and the RLS is not working in browser...
@michazawal3557
@michazawal3557 2 жыл бұрын
Hey Patrick, I really enjoyed your video, and I've started to wonder about other case. How would you set up RLS for a report that uses "single select" slicer in its view? I've been trying to set up the RLS and unfortunately once the person who open the report initially and wasn't assigned to that product, he saw a blank page and thought that something might be wrong. Is there a way to avoid it? Thanks!
@KhalidKhans55
@KhalidKhans55 2 жыл бұрын
Fantastic, Awesome, Amazing and very much interesting. I LOVE POWER BI
@tslandscapes
@tslandscapes 5 жыл бұрын
Hey Patrick, thanks heaps for making these. I learn a lot from your channel. I would have a question about this topic. Is there a way not just to dynamically remove the slicer options using RLS but also to set default option (that is available) for the user? I would like to avoid using the 'All' selection and if I set the default selection myself, it doesnt work for majority of the users as not everyone has access to that particular option and they see a lot of blank/wrong visuals instead.. Have you ever come across this? Thanks!
@mathew9665
@mathew9665 6 жыл бұрын
Nice one Patrick :-) please keep up the great work
@diegoj9056
@diegoj9056 4 жыл бұрын
Thanks a lot, Patrick. One question, Why did you hide the rows for the bridge table ?
@umairismail9555
@umairismail9555 4 жыл бұрын
Hi is there a way to change quarter to year (columns of calendar table) dynamically? Thanks
@Salmah9979sun
@Salmah9979sun 2 жыл бұрын
Thank you so much for this wonderful channel, I'm working with PowerBI Report Server, I have implemented Row-Level-Security and created one role on which every employee shall be assigned. . However, I have over 200 users using the reports. Is there a way to automatically assign every email adress of the users to this single role?
@johnfisher9379
@johnfisher9379 4 жыл бұрын
Love your videos Patrick. How can I setup default filters on a dashboard based on the user logged in. Problem: I have managers that login to our quality system where they can see how their departments are performing. We want them to be able to see other departments but when they first login only the departments that they are associated to show.
@syedasadkhan
@syedasadkhan 5 жыл бұрын
Hi Patrick Great Video. I was working on my data set very similar to what you have, but I have Territories tied to Customers and Territories tied to products. Each user that has access is defined to Territory, and they can see customers and products in that territory only. I did the bridge tables and made the relationship. But one relationship from Productbridge to territory is not happening as it returns the ambiguity error and says I need to delete or deactivate relationship between Sales and TerritoryAccess. If I do that, than I dont get slicing back to sales. Any thoughts on this.
@arameshkumar5072
@arameshkumar5072 2 жыл бұрын
adam is international guy (good sense of humor - patrick)
@gates1978
@gates1978 5 жыл бұрын
Hi guys, Thank you for this video which help me a lot to understand this part of security. I wonder is there a way to share with us this Power BI report. I would like to check how you create this model, measures and calculations. Please help me out.
@AutomationBIAI
@AutomationBIAI 4 жыл бұрын
thanks for the sharing. why you put the false value for the security bridge. I did that with my own dataset and everything is blank. what is the reason to have this step ?
@avulasandeep
@avulasandeep 6 жыл бұрын
Can you please make a video on the Relationship of Cardinality and cross filter of single and both direction
@leonardobrito3150
@leonardobrito3150 4 жыл бұрын
In my case, I have a data set and two reports, I would like to have different rules, according to the report for the same user. Is it possible to create a new report-based RLS? I think about to get report ID on DAX then apply or no.
@muhammadovaisjahanzaib6553
@muhammadovaisjahanzaib6553 5 жыл бұрын
Hey Patrick, I have one issue, how to get group base max value and multiple with our other location by a group.
@allitans
@allitans 5 жыл бұрын
Wow thanks Patrick I need to do something just like that for a report...
@nageshshastry
@nageshshastry 5 жыл бұрын
Hi Patrick, You rock! I have one small query to use this method. Assume I have 2 sheets where in 1st sheet I have 5 region and their data, in 2nd sheet I have 5regions' comments + one overview comments. If filter for region is not selected I need overview comments in my table else I need which ever region is selected comments. Could you pls help me with this. Thanks!
@mohdmuzammil3059
@mohdmuzammil3059 4 жыл бұрын
Usefull stuff, Patrick I'm a beginner to RLS can you please give a brief overview on publishing report with RLS
@chhayakumari2287
@chhayakumari2287 2 жыл бұрын
Hi, there is 1 measure which we are going to use in 2 visuals in a page. So there is requirement on 1 visual rls implented should work and another visual should not be impacted for eg there is a measure called total sales so first card visual should show total sales based on country selected and 2nd visual should show total sales and rls is implemented based on country so please help me with solution. I have tried through dax, edit interaction. Nothing is working
@AsherJeremy
@AsherJeremy 4 жыл бұрын
hi patrick, how to implemen RLS if we connect to SSAS DB? because manage roles button gray out. thanks in advance
@pavani_n
@pavani_n 3 жыл бұрын
I HAVE A TABLE THAT HAS multiple "many to one " joins on it and when I test RLS on pbi desktop using UPN() it worked on my end. However after publishing the rpeort it has stopped working and users could not see those rows . Any reason why ? can we connect on a call to discuss this ?
@user-ht9ct4ih8p
@user-ht9ct4ih8p 6 ай бұрын
If two different data sources and no common key between them but filters are the same in both of the tables. How could rls do in that situation . Is it work ?
@scientifically5812
@scientifically5812 3 жыл бұрын
Is there any way to setup RLS for real time dataset? I managed to filter rows based on userprincipalname (as measure), and it works at report level, but when I pin the tile to dashboard, it shows 'zero'....? Thank you.
@allaboutpixhawkandrpi3691
@allaboutpixhawkandrpi3691 4 жыл бұрын
Question, i have created a dashboard with multiple tabs and would like to manage who have access to view those Tabs. is there a way to do it?
@ravitejak9414
@ravitejak9414 Жыл бұрын
how would we change the currency symbol according to the country when we have a calculated values in the visual
@ericdavila3402
@ericdavila3402 5 жыл бұрын
Hey Patrick, any advice on how to handle RLS filtering out measures that are being used for aggregating information like a benchmark page showing how a specific country performs against a region without filtering the regions values? Today RLS appears to alter any measures made for aggregation comparison making my benchmark page incorrect. Any help on this would be awesome!!
@360mariners
@360mariners 6 жыл бұрын
Patrick! Thanks for problem-solving on this topic. Would you be interested in doing a video on the top 5 technical problems that Power BI users have? Keep up the great work!
@GuyInACube
@GuyInACube 6 жыл бұрын
We could definitely do something like that. 👊 Will see if we can pull together some information for that.
@karthigeyans191
@karthigeyans191 3 жыл бұрын
I have enterpeise level data and i can filter using the E-mail ID. I used USERPRINCIPALNAME() in the Manage roles and equated to the mail-id but its not working as expected. Is there any other option that i need to enable
@oren2010T
@oren2010T 4 жыл бұрын
Very nice demo !!!!! thank you :-)
@vaishnavipupneja6287
@vaishnavipupneja6287 4 жыл бұрын
Hey Patrick I have a table which is having user name mapped to the country list. After applying the security i want to see the assigned country for the user in the dropdown as selected with the option of selecting others if required. Can this be achieved? Thanks
@mohammedmanaryazji2831
@mohammedmanaryazji2831 5 жыл бұрын
hi Patrick how are you after doing the RLS I can't publish my report in web so how can I solve this problem??
@kylekastilahn
@kylekastilahn 5 жыл бұрын
How does one setup the card looking item that starts as "RLS not activated" then reverts to Username Logged in as at circa 2:50 of the video?
@chamelion100
@chamelion100 5 жыл бұрын
Great video.......stay blessed
@motorex182
@motorex182 4 жыл бұрын
Not everyday we see someone so straightforward explaining these great stuffs! Nice work man! Thanks a lot
@GuyInACube
@GuyInACube 4 жыл бұрын
Glad you liked it. Thanks for watching! 👊
@heniekheniek1781
@heniekheniek1781 2 жыл бұрын
@@GuyInACube why not stick with the first solution you showed and just change relationship direction to both between Customer and Internet Sales? Also I think even this is not needed as you can add a measure filter on the slicer?
@shraddhabatwalkar5411
@shraddhabatwalkar5411 4 жыл бұрын
Is there any way we can apply row level security using group.. as user does not want to manage users
@jasoncockington7709
@jasoncockington7709 2 жыл бұрын
Hey Patrick, I Just tried to do RLS with the bridging table, but I got an error when I tried to turn on the "Apply security filter in both directions": "Table 'RLS' is configured for row-level security, introducing constraints on how security filters are specified. The setting for Security Filter Behavior on relationship 'relationship number' cannot be Both." Have you got any ideas where I went wrong?
@user-rl8dw2ul2m
@user-rl8dw2ul2m 8 ай бұрын
Hi Patrick, I have a user table and created relationship with Dimension table but the filtering is not happening on fact table. Can you help me resolve this issue?
@ronaldsunny
@ronaldsunny 2 жыл бұрын
is there ways to get USERNAME() or Userprincipalname() in Power Query or native custom query before loading data into import or direct query ? like select * from Table1 where email id=Userprincipalname()
@bitips
@bitips 3 жыл бұрын
Could you show how you construct this bridge table ?
@kishore83
@kishore83 Жыл бұрын
Hi Patrick, nice video and concepts. I have a scenario. I have a set of dashboards and need to restrict the access for specific users. Which means only for a few users I need to restrict but all others I need to allow. Consider I have a table useraccess and it have list of usernames who need restricted access. Can you please help me in filtering this out?
@rohitnair5958
@rohitnair5958 5 жыл бұрын
I am embedding a Power BI report in a sharepoint page, is it possible to do a row level security in which data will change based on the user?
@bigdataguy1266
@bigdataguy1266 4 жыл бұрын
Hi , Is that possible to use RLS with Direct Query mode in power BI Report Server , am using Sql Server as DB .
@ganeshpadvekar858
@ganeshpadvekar858 4 жыл бұрын
How to pass whole number column values into the IN operator using dax.... Please help
@rahulkallur5789
@rahulkallur5789 4 жыл бұрын
Hi,great video And how to pass roles dynamically
@asfinance1351
@asfinance1351 4 жыл бұрын
I am having problems with people being able to view information outside of their assigned roles. I have a single table that has transaction information with a department identifier. I have created roles for the specific departments. When I view as role it correctly changes the view to only display that department. I have assigned users to those roles in the Power BI service. When I test this and enter their email to view as that specific user they can view information outside their assigned role. How do I fix this?
@colinsobers1862
@colinsobers1862 4 жыл бұрын
Patrick that's great with UserName and UserPrincipalName but what about AD groups? I need to manage RowLevel Security via AD security groups. Can that be done?
@keithh8404
@keithh8404 4 жыл бұрын
We are trying to create RLS for AAD groups in our company and not sure how to integrate it whether using office 365 or is there anything we need to do with Azure active directory. The link between AAD and power BI is what I am trying to find out. Thank You
@kousalyarameshbabu9944
@kousalyarameshbabu9944 5 жыл бұрын
Hi, I got below error while creating RLS, Joins paths are expected to form a tree, but the table 'store' has two join paths to table 'project':'store'--'agr'--'project-agr'--'project' and 'store'--'project' Can u please help on this Thanks in advance
@catalinbotezan8009
@catalinbotezan8009 5 жыл бұрын
Hey Patrick! I'm experiencing something weird with row level security, I've set up my roles and all is good and works, until i put the report in MS Teams as a tab, and them all of my RLS disappears and everybody can see everything. Have you experienced something like that or am i doing something wrong?
@darrinlange
@darrinlange 6 жыл бұрын
Have you tried this method to control the bookmarks that are available to a user? Can you disable or hide bookmark buttons based on user roles? I have a main menu but do not want all users to have access to all buttons.
@kyleparsons1735
@kyleparsons1735 4 жыл бұрын
Hey guys, if you haven't already made a video about it, could you please do one expanding on the bridge table you used at 4:11 ? I tried to find some more information on it but wasn't successful. I'm running into the same (blank) values on a report of mine and I like your fix, I just don't understand that table. If you did already make a video, could you link it for me? Thanks!
@takumemmanuel7326
@takumemmanuel7326 3 жыл бұрын
This is great. But how do I filter my row level security to show data for only two down stages below a manager who is logged into the dashboard to see the report of those below him including his own report. That is, if this manager has four other managers, stage by stage below him in the hierarchy, and he needs to see results for himself and not more than two stages down from him in the hierarchy. How do I achieve this in Power BI?
@alexandramannerings6327
@alexandramannerings6327 5 жыл бұрын
How would you handle this if your customers could be in more than one region? I'm assuming this only works because you can create a one-to-one relationship between your bridge table and your customer table. But if a customer was in two regions, then that customer ID would show up twice, messing up the join of the bridge table to the customer table. How do you get around that?
@raphaelbonillo2192
@raphaelbonillo2192 5 жыл бұрын
Beautiful!
@joutry
@joutry 6 жыл бұрын
Great video as always! Love the content guys! As RLS only comes with the compromise of loosing some great features like Insights or Q&A have you ever thought about making a video that showcases how you can enable users to only see data within their scope but go beyond that e.g. with a toggle/button? We dont really want to restrict users with RLS but we are forced to do so since reports and dashboards otherwise would simply show too much information. Anyone have a solution? I've been digging for quite a while now but have not found a way to do it. Cheers folks
@florianhapp3498
@florianhapp3498 2 жыл бұрын
I am working with a table containing username, Mode and role. There are currently two modes "focus" and "peer group". The roles can be added to a slicer while dynamic rls is set up using userprincipalname(). This should work perfectly fine.
@dhawalpmehta
@dhawalpmehta 6 жыл бұрын
Right on point Patrick
@GuyInACube
@GuyInACube 6 жыл бұрын
Thank you Dhawal! And thanks for watching!👊
@nehashahpatel1741
@nehashahpatel1741 2 жыл бұрын
million thanks
@asifrehman4214
@asifrehman4214 3 жыл бұрын
Hello Sir... I am working "On-Premises" PWI Report Server. I am using SSAS and created role for RLS. The role is working fine in PBI Desktop but It is not working in the browser. I have "pcname\username" in the username field. What I am doing wrong?
@diegoadum2701
@diegoadum2701 6 жыл бұрын
The "DAX" method is what we were using for the last 18 years in a solution made on Another BI tool. We do have a process that everynight build the relationship between sales and users and create the table that "said" which record belongs to who. The down side of that is that every sales records MUST belong to somebody. If not, that sales is not going to be shown in the dashboard. So in a sales estructure such as in my company on where we do have sales mans, managers and VP's, we need to ensure the complete estructure is created before a manager or a VP gets into the main dashboard.
@GuyInACube
@GuyInACube 6 жыл бұрын
Yup. If you are implementing dynamic security, you will need to account for everything in order for it to show up and for the numbers to be correct.
@lassejrgensen3947
@lassejrgensen3947 5 жыл бұрын
Hey Patrick Nice video. In my opinion RLS is often an affordable task whenever you have a single fact table. However, once you have a larger model with multiple fact tables - security becomes a totally different size to handle. Especially if all dimensions are not necessarily linked to all fact tables. Could you create / share video or experience on how to handle this? I would really appreciate some inspiration on this. Thx in advance.
@alexisgray1634
@alexisgray1634 4 жыл бұрын
Hi ! Any updates on this ? I haven't find anything yet
@dheitsc7871
@dheitsc7871 3 жыл бұрын
Same for me, I have a large data model with 4 different source systems, all merged to one big dataset. Only in one of these darasources there is actually a customer reference. Thanks for your great videos!
@JW-lv1fm
@JW-lv1fm 2 жыл бұрын
Power BI doesn't handle more than 3 tables well. RLS will start hiding rows. SCD2 wont really work on dimensions. Remote DB (Direct Query) will start crawling. I think stacking DAX on top of Power Query on top of a DB has caused a few black box bugs to work around.
@niklase5901
@niklase5901 5 жыл бұрын
thanks!👍
@nupurbishnoi4613
@nupurbishnoi4613 4 жыл бұрын
#guyinacube Can password protection be applied on button, so that when I click the button it asks a password and if its correct then takes me to the page linked with that button, plz help with this.
@Vpatel169
@Vpatel169 3 жыл бұрын
I was hoping If you could create a login page where people have access to different pages of a power bi report?
@matttomlinson6389
@matttomlinson6389 5 жыл бұрын
Great video - thanks! I'm keen to see how RLS can be applied across an org hierarchy in the same way. ie. Person A manages Team A so can see all rows for Team A, Person B manage team B so can see all rows for team B. Person C manages Person A and Person B, so can see all rows for Team A and B. I'm looking at a multilevel hierarchy (up to 15 levels), so creating a bridge table listing every team that each person can view might be inefficient. Would be great to hear your thoughts!
@jemmaliaymen258
@jemmaliaymen258 3 жыл бұрын
hello I have a problem with RLS , I want to activate the RLS for multiple columns in my fact table , I want to filter the data in all my dimensions , can someone help please ?
@manu053299
@manu053299 4 жыл бұрын
what is we have a supper user who should have access to all the data while other have to view only their data
@owlowl582
@owlowl582 6 ай бұрын
Q: what if my fact tables do not have username? I read the pin comment about creating username via dim tables. Do you have an example?
@peterhofmann8292
@peterhofmann8292 6 жыл бұрын
This may sound "stupid", but did you guys make a video on bridge tables? Just asking as these are still a bit of a mystery to me. TIA
@leonardomauro7894
@leonardomauro7894 4 жыл бұрын
I have a qeustion. How set users in "no rule". For example, I have one security table with my respective usernames, but some administrators does not have any rule in this table. Thus, I want to publish my report and set the rule for just some few users. However, the users that I didn't set any rule, crash their report. In this sense, I created a rule for admin and set them in Power BI Service (Online). Is there another way to do that? (sorry for any english issue - hehehe)
@andram3124
@andram3124 6 жыл бұрын
Hi Patrick, great videos. Can you create measures that bypass RLS without duplicating the data model? In my case, I have a list of vendors, and I want each vendor to see their performance against a total average. I thought about simply creating some measures and sticking them in a table separate from the data model, but that isn't ideal. I would also like the measure to be responsive to filtering. Thanks and keep up the good work!
@mickearvidsson
@mickearvidsson 5 жыл бұрын
We have the same issue and I think it is a common scenario in sales. Please do a video on that :-)
@ehabsh2637
@ehabsh2637 6 жыл бұрын
Nice video Patrick, Actually i used the lookup approach because our customer wants the reports in power bi report server , and you know you don't have the role assignment features on-premise . One of our project i used the contains function . But never checked the performance of it . I suggest to make another video for power bi on-premise when you have multiple role for the user . Thanks
@GuyInACube
@GuyInACube 6 жыл бұрын
Great point! Will look at circling back with on Power BI Report Server. Of course, if RLS ever comes to PBIRS, it's a moot point 😉
@bibinbastian01
@bibinbastian01 6 жыл бұрын
Buddy, do you have an article or project where I can look how RLS is implemented using LOOKUP Function?
@ehabsh2637
@ehabsh2637 6 жыл бұрын
Yes , here is a great article from Microsoft for RLS , it should give you a good idea how to implement the RLS with the lookup function . docs.microsoft.com/en-us/power-bi/desktop-tutorial-row-level-security-onprem-ssas-tabular
@rv7974
@rv7974 6 жыл бұрын
Thanks!
@GuyInACube
@GuyInACube 6 жыл бұрын
Thanks for watching! 👊
@narendrababu2287
@narendrababu2287 3 жыл бұрын
Hey patrick how to get that logged in user name? Please tell me.
@joesamraj
@joesamraj 5 жыл бұрын
how this bridge table is one to one relationship?
@prashanthdar2675
@prashanthdar2675 5 жыл бұрын
Hey Patrick, Thanks for the providing a way for RLS, however I use 'Live connection' where the 'Manage Roles' is disabled. How do I use RLS in such case, thanks in advance.
@GuyInACube
@GuyInACube 5 жыл бұрын
For live connections, RLS is managed on the server that you are connecting to. If you are doing a live connection to a Power BI Dataset, it would be defined in that source dataset.
@wieisdebaas
@wieisdebaas 4 жыл бұрын
@@GuyInACube I'm creating an dataset via the post dataset API, however if I open the dataset in power bi desktop the security and roles are disabled, can I manage this on an other level? Thanks!
@peterbroekman3704
@peterbroekman3704 4 жыл бұрын
Hi Patrick, I guess I have the 'in-between' table or what you call it approach. I have a normal user table, with users as corp\useralias. I further have a so-called userauthorization table (that is maintained in an external app) in which all project-subdomains are listed that a user owns (is authorised to). Via the link between the tables userauthorizations and users and the by you explained role security = mid(username(),5,10) on the user table I get only the sub-domains or projects that the user is authorised to see. Anyway big thanks for the video!! Peter
@elmerparica9986
@elmerparica9986 4 жыл бұрын
Hey Patrick, Nice video though however this is my issue. There will be 100 users hitting the report with different level of hierarchy. Regional manager must see performance of managers but managers shouldn't see performance of other manager. There will be around 10 reports,. How to set up RLS once only with these reports?
@chimerablack4913
@chimerablack4913 4 жыл бұрын
This unfortunately doesn't work for me... If I try to do the [Username] = Username(), it gives me a syntax error because my field has a space ([Assigned Manager] = Assigned Manager()). I've tried using % and _ instead of a space but it doesn't help.
@talhaiftikharchannel6153
@talhaiftikharchannel6153 2 жыл бұрын
Top Notch!
@hasnainnourose804
@hasnainnourose804 5 жыл бұрын
Hi Patrick, I am a BI Professional , Bi is more like a life line to me. I want to pursue power bi professionally for free lancing and providing services Can you please guide me , how should I start and polish my powerbi skills
@khushboopriya9895
@khushboopriya9895 5 жыл бұрын
hey do we need to have column named as username to use this method? I want to secure the reports on basis of a column named user_id in user_details table and we dont have the name so can i use user() function or i need to create it on basis of other functions. Please can you explain what all changes i need to make?
@khushboopriya9895
@khushboopriya9895 5 жыл бұрын
also my powerbi solution will be embedded for customers so do i have to create roles in any other manner or will it be same?
@mundoanaliticooficial
@mundoanaliticooficial 6 жыл бұрын
I'd liked more BOTH direction solution than the LOOKUPVALUE solution because it's seemingly more easy to maintain and performing much better.
@67658765858
@67658765858 4 жыл бұрын
I am sorry, but I am new into PowerBI and this is making me a bit confused. So if "ADAM" username log in is in fact "Adam", when he logs in he can only see the graphic that is related to him and cant see anything about Patrick is that it ?
@mathew9665
@mathew9665 6 жыл бұрын
Patrick - can you exclude columns based on login I.D. as well so this would be column level security I guess (CLS rather than RLS)
@nicolemwanaidi1488
@nicolemwanaidi1488 4 жыл бұрын
Apparently you can only set security on an entire table but not columns. Probably why your tables should be as granular as possible so you can secure an entire table. My opinion
@noahswanson9940
@noahswanson9940 3 жыл бұрын
I have not been able to hide columns but you can alter the values of columns based on roles. [Column Name] = 0. I have used this for roles that should not have access to cost and revenue data. I would imagine similar to the lookup you could write a simple if statement and have it show or not show a column based on an if or lookup to your column security table the same as shown in the video.
Dynamic Row-level Security 🔐 - Based on Dimension Tables
15:53
BI-Lingual Analytics
Рет қаралды 31 М.
Debug DAX using Variables in Power BI
15:41
Guy in a Cube
Рет қаралды 88 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Looking at Power BI Many to Many
8:47
Guy in a Cube
Рет қаралды 157 М.
POWERAPPS and POWER BI can do what?!? It's bananas!
9:37
Guy in a Cube
Рет қаралды 320 М.
Bidirectional Cross-Filtering and Row-Level Security
9:21
Pragmatic Works
Рет қаралды 2,5 М.
Object-Level Security in Power BI
10:00
BI Elite
Рет қаралды 33 М.
2 ways to reduce your Power BI dataset size and speed up refresh
17:24
Power BI Tutorial | From Flat File To Data Model
10:27
Guy in a Cube
Рет қаралды 154 М.
Power BI: Row-Level Security with Multiple Conditions
12:04
Pragmatic Works
Рет қаралды 16 М.
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 8 МЛН
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 378 М.
Смартфон УЛУЧШАЕТ ЗРЕНИЕ!?
0:41
ÉЖИ АКСЁНОВ
Рет қаралды 1,1 МЛН