Forum Discussion

iversa's avatar
iversa
Helper I
9 years ago
Solved

How do I pass parameters to a dashboard

I have 10-15 sales reps and want to share a dashboard/report in Power BI but need to pass a parameter to these reports by default. For example, each sales rep is only supposed to see their sales tota...
  • malagari's avatar
    malagari
    9 years ago

    No, row-level security is what you're looking for.  The reason I asked about the API is because this section of the forum tends to focus on the Power BI API / Embedded version.

     

    You'll most likely want to target this question in the "Desktop" forum.  I'll give a little more clarity:

     

    Does your dataset currently capture the sales team member's email address anywhere? For instance, do you have a 'User' table that has the UserID, Email, Name, etc?  If you do, then your data is perfectly shaped to use RLS wih the USERNAME() DAX function.  This would filter would capture the user's email address (Office 365 account) when they view the report and filter the dataset accordingly.

     

    I strongly suggest checking this out, it should give you enough guidance: https://powerbi.microsoft.com/en-us/blog/using-username-in-dax-with-row-level-security/.