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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors