Forum Discussion
Filter on data that does not exist in a table
MadisMerk , Use this measure with company name in a table visual and try
if(isblank(count(Table2[Transport Region])),1,blank())
Hi,
It does work partially, but I would like to use it in a slicer and also have the rest of the transport regions present in the same slicer.
- v-kelly-msft5 years ago
Community Support
Hi MadisMerk ,
First create a column in company table:
_region = RIGHT('Table'[Name],1)Then create a measure as below:
Measure = IF(NOT(MAX('Table'[_region]) in FILTERS('Table (2)'[Transport Region])),1,BLANK())And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
- MadisMerk5 years ago
Helper I
Hi,
This is the other part of the equation, but how am I able to use it in a slicer?
- v-kelly-msft5 years ago
Community Support
Hi MadisMerk ,
Create a slicer table as below:
slicer table = VALUES('Table (2)'[Transport Region])Then create a measure as below:
Measure = var _tab=CALCULATETABLE(VALUES('slicer table'[Transport Region]),ALLSELECTED('slicer table')) Return IF(MAX('Table'[_region]) in _tab,BLANK(),1)And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!