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
GR83
Regular Visitor

Display line graph if one of the filter is selected?

I have a table with Number(1,2,3,4,5)
I need to show line if either 1 or 3 is selected 
So if the selection includes 1 or 3 the line should display

Ex (1,2,4,5) Line should be displayed,

If I select only (2,4,5) or any one or two of them line should not display 

 

2 REPLIES 2
amitchandak
Super User
Super User

@GR83 , Create a measure like below, where m1 is your existing measure

 

if( isblank(countrows(filter(Table, Table[Value] in {2,4,5}) ) ), [M1], blank())

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

Thanks for the reply, the problem I have more than 3 values in the In-Function you provided, which cannot be hardcoded, they can be derived from a different table.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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