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 September 15. Request your voucher.

Reply
poweruser55
Helper IV
Helper IV

Hide line on graph based on filter selection

I have a graph that changes when a filter is selected. There is one line I want to hide for a specific filter selection but keep for the other filter selections. Can this be done?

5 REPLIES 5
hangelucci
Regular Visitor

Hi,

 

@amitchandak's answer worked for me, but what if @poweruser55 wants to select two or more values? The selectedvalue would not work, right? Is there a way aorund this?

v-luwang-msft
Community Support
Community Support

Hi @poweruser55 ,

In my opinion ,you need to create a measure:

measure=if(selectedvalue'Poc'[column]='b',blank(),[before values])

And if question still alive,could you pls share  a sample data(Remember to remove confidential data) ,and expect output?

 

 

Best Regards

Lucien

Capture.PNGCapture1.PNG

There are 4 lines in the above graph. When POC is selected in the filter I want the solid purple line to dissapear lets call it Line 1 and say it comes from Table 1. I still haven't figure this out, I only want the solid purple line to dissapear when POC is selected. @v-luwang-msft 

amitchandak
Super User
Super User

@poweruser55 , If that is measure

the you can create like

if(selectedvalues(Table[Column]) ="XYZ") , [measure], blank())

 

Please share additional information, if this does not help

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

So I have to create a measure? The line is a value in the graph and it needs to be blank for something called "POC" table1 and a column called b.

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.