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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Hide and show based on specific value selected in other column

Hi All,

 

If i select a specific value in filter for eg. 6 in below screenshot then the bar chart need to be displayed, if some thing else is selected then the bar chart shouldn't display, it need to get hide.

which Power BI function will be helpful?

 

Hid and Show.png

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

 

Maybe you can consider to add more conditions to that formula:

Measure 2 =
IF (
    ISFILTERED ( 'Table'[Column] ),
    IF ( SELECTEDVALUE ( Table[Column] ) IN { 6 }, "Y", BLANK () )
)

 

Notice: you can add more items to {} to append filter range, use comma as separator.

Measure 2 =
IF (
    ISFILTERED ( 'Table'[Column] ),
    IF ( SELECTEDVALUE ( Table[Column] ) IN { 6,7,8 }, "Y", BLANK () )
)

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous,

 

You can try add a measure with if statement and isfiltered to check if fields has been filtered. Then drag above measure to visual level filter with 'is not blank' option.

 

Measure 2 = 
IF (
    ISFILTERED('Table'[Person]),
    "Y",
    BLANK ()
)

 

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @Anonymous,

 

Thanks for your reply. 

 

But my requirement is when i select 6 in the filter at that time only the chart need to populate. When i select 5 or 7 or anything apart from 6 it shouldn't populate.

 

Regards

 

 

Anonymous
Not applicable

HI @Anonymous,

 

Maybe you can consider to add more conditions to that formula:

Measure 2 =
IF (
    ISFILTERED ( 'Table'[Column] ),
    IF ( SELECTEDVALUE ( Table[Column] ) IN { 6 }, "Y", BLANK () )
)

 

Notice: you can add more items to {} to append filter range, use comma as separator.

Measure 2 =
IF (
    ISFILTERED ( 'Table'[Column] ),
    IF ( SELECTEDVALUE ( Table[Column] ) IN { 6,7,8 }, "Y", BLANK () )
)

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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