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
jacobsutcliffe
Frequent Visitor

Slicer filter logic contains number

Hello, 

 

I have a dataset containing maintainance data for office buildings. Each line is a maintainance ticket containing details about the work required, time taken etc which is extracted from our system. However there is one field which relates to the room where the work is carried out which is causing me problems. 

 

Sometimes the maintainance required is carried out across multiple rooms (for example we had a water leak and it effected 2 rooms next to each other). The way the system outputs this data is in the same row, so the Room field would have an entry like R17, R18 (this happens quite often).

 

I'm currently trying to build a dashboard with this data with has a page where you can select the room using a slicer and it filters the visuals so that it shows all of the maintainance tickets against that specific room. 

 

This works fine using a page level filter with a contains logic. Is there anyway I could use a slicer for this along with some clever dax?

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @jacobsutcliffe 

The information you have provided is not making the problem clear to me.

If you share sample data and expected output in excel, it will help us provide the appropriate solution.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@jacobsutcliffe , Create a independet table, with room number and impacted room number , say imapct

 

room number , impacted room number

1,1

1 ,1

2 ,1

2,2

2,3

 

Now give slicer on room number and use that in filter of you measure

 

calculate( count(Table[Room]), filter(Table, Table[room] in allselected(impact[impacted room number] ))

 

Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE

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

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.