Forum Discussion
Filtering a table based on values from an unrelated table
- 8 years ago
Hi dparkinson,
Based on my test, you should be able to use the formula below to create a new measure first, then use it as visual level filter(Measure is greater than 0) to get the expected result in your scenario. :smileyhappy:
Measure = COUNTROWS ( FILTER ( TechCompanies, SEARCH ( TechCompanies[techcode], MAX ( Things[Thing Companies] ),, 0 ) > 0 ) )Here is the sample pbix file for your reference. :smileyhappy:
Regards
Hi dparkinson,
Based on my test, you should be able to use the formula below to create a new measure first, then use it as visual level filter(Measure is greater than 0) to get the expected result in your scenario. :smileyhappy:
Measure =
COUNTROWS (
FILTER (
TechCompanies,
SEARCH ( TechCompanies[techcode], MAX ( Things[Thing Companies] ),, 0 ) > 0
)
)
Here is the sample pbix file for your reference. :smileyhappy:
Regards
That's great. Thanks for the reply. Seems to work great -- I'll give it a go on my proper dataset.
I think I ideally need to extract that field out to another table somehow and give it a many-to-many relationship so that I can crossfilter more easily etc. I'll maybe add another question for that.
Thanks once again.
D.