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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Syndicate_Admin
Administrator
Administrator

Mostar or hide Object (Power Automate button) according to connected user.

Hello colleagues, I need to show or hide a visual, depending on the user who connects. In this case, as there would only be two users to whom the visual has to appear, I did not want to use RLS because I tried and I could not.

Someone comes up with how to show an object with some type filter:

if (_usu="abcd@outlook", shows object, does not show object) something that I can put to that object and show it only to that user?

I would appreciate any help, because I have been trying for several days before requesting your help.

Thanks and greetings

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try:

1. Create a card visual and adjust its size to cover the object (Power Automate button):

vjianbolimsft_0-1678760878352.gif

2. Apply the measure to the card visual and turn off Category Label:

Measure = ""

vjianbolimsft_1-1678760950310.png

3. Create a transparent measure and apply this to the card visual:

Transparent = 
IF ( USERNAME()="abcd@outlook", "#FFFFFF00", "White" )

vjianbolimsft_2-1678761087853.png

Final output:

vjianbolimsft_3-1678761303554.gif

Note: This method is not completely secure, so if the content you need to hide contains sensitive data, consider using RLS.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try:

1. Create a card visual and adjust its size to cover the object (Power Automate button):

vjianbolimsft_0-1678760878352.gif

2. Apply the measure to the card visual and turn off Category Label:

Measure = ""

vjianbolimsft_1-1678760950310.png

3. Create a transparent measure and apply this to the card visual:

Transparent = 
IF ( USERNAME()="abcd@outlook", "#FFFFFF00", "White" )

vjianbolimsft_2-1678761087853.png

Final output:

vjianbolimsft_3-1678761303554.gif

Note: This method is not completely secure, so if the content you need to hide contains sensitive data, consider using RLS.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors