Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
In Power BI, I need to create a display that shows only the values from Table B that are not present in Table A, based on the selected country from a dropdown filter
Table a
Car Country
tata india
tata swiss
swift pak
benz swiss
swift India
kia pak
Byd. Lanka
Byd India
Table b
Brand year
benz 2000
kia 2001
tata 2002
Volvo 2003
example:
if i select pak in dropdown the output should be
Benz 2000
tata 2002
Volvo 2003
If i select india the output should be
benz 2000
Kia 2001
Volvo 2003
Hi, @manoj619
You can try the following methods.
Measure =
VAR SelectedCountry = SELECTEDVALUE('Table a'[Country])
Var _table=
FILTER( 'Table b',
NOT 'Table B'[Brand] IN
CALCULATETABLE( VALUES('Table a'[Car]),'Table a'[Country] = SelectedCountry))
RETURN
IF(SELECTEDVALUE('Table b'[Brand]) in _table,1,0)
Is this the result you expected?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
i got error as the number of arguments is invalid. Function containsrow must have value for each column in the table expression
Ensure that there is no direct relationship between Table A and Table B.
Use the 'Country' column from Table A to create a dropdown filter.
Create a new calculated table that will contain the brands from Table B that are not present in Table A for the selected country.
DAX
FilteredBrands =
VAR SelectedCountry = SELECTEDVALUE('Table A'[Country])
RETURN
FILTER(
'Table B',
NOT 'Table B'[Brand] IN
CALCULATETABLE(
VALUES('Table A'[Car]),
'Table A'[Country] = SelectedCountry
)
)
Use a table visual to display the values from the FilteredBrands table.
Proud to be a Super User! |
|
showing expression refers to multiple columns cannot be converted a scale value
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |