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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.