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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
thhmez7
Helper III
Helper III

Security Role - Show all data rows but no data in column of other rows

Hello,

 

marked.png

In this example, when User A is logged in later in PBI Service, he should still see all data rows from other users. But he should not see any data (Blank) of the column "Checked". So User A sees:

A1; Yes

A2; Blank
A3; Blank

A4; Blank

 

A simple Userprincipalname in a RLS would not work, because User A would only see his data row.

How can I achieve this by Manage roles or creating new column? 

Thank you.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@thhmez7 ,

a new measure =

var _1  = countrows(filter(Table, Table[User]) =  userprincipalname() )) +0

return

if(_1>0 , "Yes", "" )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
thhmez7
Helper III
Helper III

Hi, 

thank you a lot. Now it works. I forgot to mark the security filter in the relation of Account and User table.

amitchandak
Super User
Super User

@thhmez7 ,

a new measure =

var _1  = countrows(filter(Table, Table[User]) =  userprincipalname() )) +0

return

if(_1>0 , "Yes", "" )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi  @amitchandak 

I tried your measure and entered the domain of User A in "View As". However it seems that User A sees "Yes" for User B as well now, that would be wrong.

marked2.png

Anonymous
Not applicable

HI @thhmez7,

Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.