Row Level Security (RLS) in Power BI | Implementing Static & Dynamic RLS in Power BI Models

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 12

  • @JenMayB
    @JenMayB 2 месяца назад

    Also, how do you get your card values to update based log in? Mine show totals until they click on the role they can see.

  • @JenMayB
    @JenMayB 2 месяца назад

    Under upn, how do you have a role that can see everything?

  • @timothyvavra7680
    @timothyvavra7680 18 дней назад

    Not a comment but a question. I have a hierarchy between vp, supervisor and user. If the vp goes into the pbi report, there filter will be applied and they would get all their supervisors and employees, if the supervisor logs in they would see all their employees and if the employee signs in they would only see the employee data. I have a table with all of the user ids and their related userprincipalname but I am not sure how to lookup and filter based on that hierarchy. There is a one to many relationship between vp and supervisor and between supervisor and employee. Each employee will only have one supervisor and one vp, and each supervisor will only have one vp. Is there a way to do this using the dynamic rls?

  • @mohankumarch2140
    @mohankumarch2140 29 дней назад

    how to add users data to service (Voice clarity)

  • @Nalaka-Wanniarachchi
    @Nalaka-Wanniarachchi 8 месяцев назад

    Good video,Isn't there a way to not use cross-filter assuming tables have relationships?

    • @Learn-PowerBI
      @Learn-PowerBI  8 месяцев назад

      Cross-filtering does not limit data access at data source, whereas RLS does.
      So, if you simply need to have a report filtered down to various items, you should manage that filtering of the report directly through the reports filtering, visuals cross-filtering, and your measures, but if you need the data end-users have access to view to be restricted, this is where RLS comes into play.
      Hope this helps!

    • @Nalaka-Wanniarachchi
      @Nalaka-Wanniarachchi 8 месяцев назад

      @@Learn-PowerBI I meant cross filter dax function.

    • @Learn-PowerBI
      @Learn-PowerBI  8 месяцев назад +1

      Ah, the CROSSFILTER() function would not be able to accomplish any RLS type solution. This function is used for overriding the default models relationship filter direction between the tables specified.
      For instance, you have a location lookup to your sales table (active one-to-many relationship) and for some reason you want your sales table to filter your lookup table for one of your measures, you could use CROSSFILTER() to adjust the active relationship in the model to change the relationship specified in the model to filter location lookup by the sales table.
      This function is a pretty niche DAX function that you likely won't be needing in a majority PBI projects. If you see yourself trying to use this function, there is likely an issue with your base model that might need to be adjusted to get the full model to function as intended.

  • @Datavers
    @Datavers 6 месяцев назад

    Please Use bettter Mic for consistnt Voice Quality

  • @yagnralph
    @yagnralph 11 месяцев назад

    I want to know how to configure RLS in Power BI Embedded

    • @Learn-PowerBI
      @Learn-PowerBI  11 месяцев назад

      Hello - I'll work on getting a video for this published, wont be able to get it out for a weeks though, sorry! As a stop-gap or to get going on your own, here Microsofts explanation of how to set this up, learn.microsoft.com/en-us/power-bi/developer/embedded/cloud-rls.
      As a high level overview of how RLS in embedded reports work, see this explanation (not sure if this is helpful or not but hopefully it helps get you started!):
      - When a user accesses the embedded report, they are authenticated through your app's authentication process.
      - After authentication, your application will generate an embed token for the user. This embed token is generated through an API call to Power BI, and the information used to generate this token will typically include the user's identifier and the roles that apply to that user, this can include dynamic or static RLS rules that are covered in this course. This embed token is crucial as it dictates what data the user is allowed to see based on the RLS roles and rules defined in the Power BI model.
      - When the embedded report is accessed by the user, the Power BI service uses the information in the embed token to apply the RLS rules. The filtering based on RLS is performed on the Power BI service side, not in your application. The embedded report in your application will only show the data the user is allowed to see based on the RLS rules.
      Certainly a lot more in-depth than just RLS for report viewing directly within Power BI service, but totally possible to get setup. I'll work on getting a video out for this ASAP!

  • @wonnapee
    @wonnapee 6 месяцев назад

    man you gotta change your mic. It s killing the whole vid