The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Solved! Go to Solution.
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
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
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
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