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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a button that is only visible on Desktop

Is it feasible to create a button on PowerBI desktop which is not visible when the report is published on service? The same button should be visible when the user downloads the report from Service.

1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
Memorable Member

Hi,

I do as below :

create the measure and check if the user and userprincipalname are equal :

UsrVisable/Enable = if (USERNAME() <> USERPRINCIPALNAME(), 1, 0)
Then for the particular Button, I changed the Text and Icon color based on the formula(in Style property) and put that as a page color for disabled the button :
MahyarTF_0-1667288371484.pngMahyarTF_1-1667288426401.png

 

when you publish it in the server the button should disappeared (not shown)

 Thanks for your kudos and please mark it as a solution if it helps you
MahyarTF_2-1667288590836.png
Mahyartf

View solution in original post

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Whether the advice given by @MahyarTF  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

MahyarTF
Memorable Member
Memorable Member

Hi,

I do as below :

create the measure and check if the user and userprincipalname are equal :

UsrVisable/Enable = if (USERNAME() <> USERPRINCIPALNAME(), 1, 0)
Then for the particular Button, I changed the Text and Icon color based on the formula(in Style property) and put that as a page color for disabled the button :
MahyarTF_0-1667288371484.pngMahyarTF_1-1667288426401.png

 

when you publish it in the server the button should disappeared (not shown)

 Thanks for your kudos and please mark it as a solution if it helps you
MahyarTF_2-1667288590836.png
Mahyartf
amitchandak
Super User
Super User

@Anonymous , I doubt that is possible. But I agree with @AbbasG , need more details

AbbasG
Memorable Member
Memorable Member

@Anonymous can you explain a bit more here about what exactly do you want to achieve?? if possible with some examples.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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