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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
amitkhare82
New Member

Slicer Filtering the multi selected values search exact value

Hello All,

 

I'm running into something that may be a very common issue but cannot get it through.

 

Here is my situation.

1.  A Slicer table- Device

Device IDDeviceName
1New Device 
2Pre owned Device
3Refurbished Device
4Outdated Device

 

2. Data table

ProjectsRelated Devices
Project 1New Device, Pre owned Device
Project 2Pre owned Device, Outdated Device, New Device
Project 3Refurbished Device
Project 4Outdated Device, Refurbished Device
Project 5Pre owned Device
Project 6New Device

 

My slicer is multiselected so I select " New Device" I should be getting 3 rows as a result in table but I get only one record which Project 6. What I'm looking for when I select the New Device from slicer, it should give the result of Project1, Project 2and Project6. If I select the New Device and Pre owned device, I should be getting the Project 1, 2, 5 and 6.

 

Tried using the custom measure but it doesn' work.
IsFiltered = IF(
SUMX('Device',
FIND(
'Slicer'[DeviceName],
MAX(Projects[RelatedDevices]),,0)
) > 0,
"True",
"False"
)

 

Any suggestions would be greatly appreciated.

 

Thanks,

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @amitkhare82,

 

Based on my test, you should be able to use the formula below to create a new measure, then use it to apply a visual level filter(IsFiltered is 1) on the Table visual which shows the projects to get the expected result in your scenario.

IsFiltered = 
IF (
    SUMX (
        'Device',
        FIND ( 'Device'[DeviceName], MAX ( Projects[Related Devices] ),, 0 )
    )
        > 0,
    1,
    0
)

Note: make sure there is no any relationship between the two table.

 

r1.PNG

Here is sample pbix file for your reference. Smiley Happy

 

Regards

Thank you @v-ljerr-msft

Yes, My formula works with a limited set of data. I sent the samples of data but in my thousands of records, My Device Name slicer shows the Blank too. If I select two values from filter , it doesn't filter the correct records but If I select the Blank along with other values (one or more )it works with the same Measured column. I tried to hide the Blank in filter but it didn’t work either. 

 

I suspect that due to some or many records having the blank values of related devices, the formula based "Measured column" doesn't work the way it would work. Although my Device Table doesn't have any blank record.

 

Thank again for looking into this.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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