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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mokegubshook
Helper I
Helper I

Hide or show visual base on parameter slicer

Hi, I want to hide or show visual base on my slicer which made from Field Parameter.

If I select completeness Status then I want to hide or show some visual.

Mokegubshook_0-1745845412479.png

My slicer is made from field parameter

Mokegubshook_1-1745845436515.png

My problem is, I try many way but got errors like "Parameter is part of composite key"

2 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@Mokegubshook 

Create a DAX Measure for Visibility: You need to create a DAX measure that determines whether a visual should be shown or hidden based on the slicer selection. For example:

ShowVisual =
IF(
SELECTEDVALUE('Parameter Table'[Parameter Fields]) = "Completeness Status",
1,
0
)
This measure returns 1 if "Completeness Status" is selected, otherwise 0.

 

Use the measure to conditionally format the visual's transparency or visibility. You can do this by:

Selecting the visual you want to hide/show.
Going to the "Format" pane.
Finding the property that controls visibility (like "Transparency" or "Visibility").
Applying a rule based on the ShowVisual measure. For example, set transparency to 100% when ShowVisual is 0 and to 0% when ShowVisual is 1.

 

Alternatively, you can use bookmarks and the selection pane to control the visibility of visuals. Create bookmarks for different states (e.g., one with the visual shown and one with it hidden) and use the slicer to trigger these bookmarks.

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

v-vpabbu
Community Support
Community Support

Hi @Mokegubshook,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

 

Power BI doesn’t truly "hide" visuals dynamically, but 100% transparency effectively makes it invisible to the user.

Make sure your Field Parameter is not part of a composite key in your model if you're joining it in relationships; don't relate it directly to other tables unless necessary.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


Regards,
Vinay Pabbu

View solution in original post

6 REPLIES 6
v-vpabbu
Community Support
Community Support

Hi @Mokegubshook,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Vinay Pabbu

Hi @Mokegubshook,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Vinay Pabbu

Hi @Mokegubshook,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Vinay Pabbu

v-vpabbu
Community Support
Community Support

Hi @Mokegubshook,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

 

Power BI doesn’t truly "hide" visuals dynamically, but 100% transparency effectively makes it invisible to the user.

Make sure your Field Parameter is not part of a composite key in your model if you're joining it in relationships; don't relate it directly to other tables unless necessary.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


Regards,
Vinay Pabbu

bhanu_gautam
Super User
Super User

@Mokegubshook 

Create a DAX Measure for Visibility: You need to create a DAX measure that determines whether a visual should be shown or hidden based on the slicer selection. For example:

ShowVisual =
IF(
SELECTEDVALUE('Parameter Table'[Parameter Fields]) = "Completeness Status",
1,
0
)
This measure returns 1 if "Completeness Status" is selected, otherwise 0.

 

Use the measure to conditionally format the visual's transparency or visibility. You can do this by:

Selecting the visual you want to hide/show.
Going to the "Format" pane.
Finding the property that controls visibility (like "Transparency" or "Visibility").
Applying a rule based on the ShowVisual measure. For example, set transparency to 100% when ShowVisual is 0 and to 0% when ShowVisual is 1.

 

Alternatively, you can use bookmarks and the selection pane to control the visibility of visuals. Create bookmarks for different states (e.g., one with the visual shown and one with it hidden) and use the slicer to trigger these bookmarks.

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thank you for your respond! 

I use your code but yurn out that it return 1 in every selection

Mokegubshook_1-1745858447392.png

Mokegubshook_2-1745858514571.png

Mokegubshook_4-1745858540860.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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