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! Learn more

Reply
Anonymous
Not applicable

Filter only one field of a visual

Hi, 

I have this visual 

MasTristan_0-1674565128312.png

that I need to filter on the "status" column. 

This is ok but I want to get rid of the stacked bar for history and keep only the line. The problem is if I select only ORDER and SnOP in the slicer I lose the history line because it put aside all the raw with status=hist

 

How can I do so the slicer only apply on the bar chart and I keep the line for history ?

 

All the data here is from one table with the columns 'date', 'quantity', and 'status'

Thank you

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

You can try this approach with two measures.

 

BarMeasure = CALCULATE([YourMeasure], KEEPFILTERS(Table[Status]<>"Hist"))

 

LineMeasure = CALCULATE([YourMeasure], Table[Status] = "Hist")

 

Pat 

Microsoft Employee

View solution in original post

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

You can try this approach with two measures.

 

BarMeasure = CALCULATE([YourMeasure], KEEPFILTERS(Table[Status]<>"Hist"))

 

LineMeasure = CALCULATE([YourMeasure], Table[Status] = "Hist")

 

Pat 

Microsoft Employee
Anonymous
Not applicable

Thank you this is almost it, 

now I have this 

MasTristan_0-1674567933348.png

BUT there is still something weird : when I select for example only ORDER in the slicer, all the values of the line are changing for some random smaller number. How is that possible since the measure only takes the rows with status=hist ?? 

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