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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Kohrinn
Helper I
Helper I

Controlling visibility of a button from DAX

Hi,

I would like to control the visibility of a button based on whether something is highligthed in Table visual or not. Is it even possible to control button's visibility from DAX?

 

Thanks,

Joanna

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Kohrinn ,

I'm afraid that controlling the visibility of a button directly from DAX is not typically possible. DAX (Data Analysis Expressions) is a formula language mainly used for creating custom calculations in Power BI, Analysis Services, and Power Pivot in Excel. While it’s powerful for data manipulation and calculations, it doesn’t inherently control UI elements like button visibility.

However, you can achieve similar functionality by creating bookmark and configure conditional formatting.

Create bookmark to hide or show the visual:

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn

How to show & hide visuals using Power BI Bookmarks & a Button

vyiruanmsft_1-1696383976139.png

How to toggle visuals on and off in Power BI Reports (aerieconsulting.com)

 

Apply conditional formatting to highlight info:

Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Kohrinn ,

I'm afraid that controlling the visibility of a button directly from DAX is not typically possible. DAX (Data Analysis Expressions) is a formula language mainly used for creating custom calculations in Power BI, Analysis Services, and Power Pivot in Excel. While it’s powerful for data manipulation and calculations, it doesn’t inherently control UI elements like button visibility.

However, you can achieve similar functionality by creating bookmark and configure conditional formatting.

Create bookmark to hide or show the visual:

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn

How to show & hide visuals using Power BI Bookmarks & a Button

vyiruanmsft_1-1696383976139.png

How to toggle visuals on and off in Power BI Reports (aerieconsulting.com)

 

Apply conditional formatting to highlight info:

Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

Best Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors