Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

One report for multiple users

Hello,

 

I have one requirment when I need to crate one report and that report will be shared across 10 usres but the report should show only the user specific data i.e. if user1 logged in to power bi then he should see the data just for him and no other's data same with all other users.

 

I undertstand that we could get user name who is logged in by creating a measure in desktop with username() and that will show the email id of that user but how could I use this to filter? Isn't it possible to accept the data query with filter (bind parameter) in 'where' clause  like-

 

select * from table where user = :empname --(this will come from username() measure)

 

 

My database is on-prem SQL server. Any help or any new approach would be greatly appreciated.

 

Thanks!
Harshad

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @Anonymous,

 

I believe that the best way is to use the Row Level Security check this link with explanations or just google: Power Bi Row Level Security.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

Hi @Anonymous,

 

Below see the notation for AND and OR filter:

 

AND notation

Calculate (Sum([Value], [Category] = "BLD" && [Category] = "BMV")

OR notation

Calculate (Sum([Value], [Category] = "BLD" || [Category] = "BMV")

I have made it inside a calculate just for better understanding.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

7 REPLIES 7
MFelix
Super User
Super User

Hi @Anonymous,

 

I believe that the best way is to use the Row Level Security check this link with explanations or just google: Power Bi Row Level Security.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Anonymous
Not applicable

Thanks @MFelix.

 

The link is really helpful. I should have googled it before posting question here though :). Thanks for your time.

 

Regards

Harshad

Hi   @Anonymous,

 

No problem the forum exists for this 😄

 

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Anonymous
Not applicable

Thanks @MFelix

 

Need more help. Do you know how I could use the 'AND' condition while makinh the role? I used following but its not accpeting.

 

([Category] = "BLD" and [Category] = "BMV")

 

I am try to check on google but can't find any help yet. Please advise.

 

Thanks!

Harshad

Hi @Anonymous,

 

Below see the notation for AND and OR filter:

 

AND notation

Calculate (Sum([Value], [Category] = "BLD" && [Category] = "BMV")

OR notation

Calculate (Sum([Value], [Category] = "BLD" || [Category] = "BMV")

I have made it inside a calculate just for better understanding.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Anonymous
Not applicable

@MFelix

Really appreciate your time and efforts in this matter. Thank you again!

 

Regards

Harshad

Anonymous
Not applicable

Sorry got it!

I used the following

[Category] = "BMV" && [Category] = "BLD"

and its validated successfully.

 

Thanks!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.