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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
DanielCarvalho
Helper III
Helper III

Hide a card visual based on slicer selection

Hi,

 

I usually have a measure similar to this in order to then put it on the filter to hide a visual:
HideVisual = IF(SELECTEDVALUE('CALENDAR'[Period - Current]) IN {"Current"},1,0)

or like this:
Hide Slicer = INT ( SELECTEDVALUE('CALENDAR'[Period - Current]) = "Current" )
When I try to this for a card visual, once I drop it on to filter its greyed out and it does not work... Does anyone know anyway around this? Basically what I want is when the current period is selected on my slicer, for it to show a certain card that does not show in all other periods(months)
DanielCarvalho_0-1689697038239.png

 



3 REPLIES 3
KeyurPatel14
Responsive Resident
Responsive Resident

Hello @Anonymous ,
Can you please explain how we can achive this with the help of bookmark with slicer selection?

Anonymous
Not applicable

Hi @DanielCarvalho ,

 

As the Card dispalys only one value which has been aggregated always, we are not able to add a filter condition based on this aggregate value ("Average of Values").

When the specified fields under Visual level filters pane contain more than one value, then we can set filter condition like yellow highlighted section via Advanced filtering. Take a look at this article: How to use report filters.

I think you can just create a measure to show the result when you select the slicer.

HideVisual =
IF (
    SELECTEDVALUE ( 'CALENDAR'[Period - Current] ) IN { "Current" },
    [Card visual calculation like sum],
    BLANK ()
)

Or you can create a bookmark to hide the visual.

 

Best Regards,
Rico Zhou

 

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

what would i put where you said card visual like sum??? and where would i apply this measure and how??'

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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