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

Show text visual when user not in RLS

What I wish to do is display a text visual informing the user why it's not seeing data, and how it can be fixed. I only want to display this visual when the user is not part of a RLS role.

 

Is there any way I could perform some logic for checking if the current user viewing the report in the service, is part of any of my defined roles? I imagine that if it's possible It'd be possible with some DAX logic I'm not currently aware of.

 

In advance, thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I'd like to suggest you write a measure to check table rows and return specific notice text when it has no records and create a card visual with this measure.

Measure =
IF (
    COUNTROWS ( ALLSELECTED ( Table ) ) = 0,
    "Tabel records has been filtered",
    "login: " & USERNAME ()
)

Regards,
Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

I'd like to suggest you write a measure to check table rows and return specific notice text when it has no records and create a card visual with this measure.

Measure =
IF (
    COUNTROWS ( ALLSELECTED ( Table ) ) = 0,
    "Tabel records has been filtered",
    "login: " & USERNAME ()
)

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

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

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.