Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, I need to create report using query with multiple not in statements.
select email
from table1 a
where a.email not in ( select email from table2 )
and a.email not in ( select email from table3 )
and a.email not in ( select email from table4 )
Where table1, table2, table3 and table4 are not related
Im using power bi with Direct Query mode.
Any ideas/help is greatly appreciated!
Solved! Go to Solution.
Hi @Anonymous ,
Based on my testing, please try the following methods again:
1.Create the simple tables.
2.Create the new table to filter the email.
filtered_data =
var tab2 = SELECTEDVALUE(Table2[Email])
var tab3 = SELECTEDVALUE(Table3[Email])
var tab4 = SELECTEDVALUE(Table4[Email])
RETURN
CALCULATETABLE('Table1', NOT('Table1'[Email] IN {tab2, tab3, tab4}))
3.Drag the new table into the table visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on my testing, please try the following methods again:
1.Create the simple tables.
2.Create the new table to filter the email.
filtered_data =
var tab2 = SELECTEDVALUE(Table2[Email])
var tab3 = SELECTEDVALUE(Table3[Email])
var tab4 = SELECTEDVALUE(Table4[Email])
RETURN
CALCULATETABLE('Table1', NOT('Table1'[Email] IN {tab2, tab3, tab4}))
3.Drag the new table into the table visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, sorry to take me so long to test your solution...
Unfortunately when i tried got this error -
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 26 |
| User | Count |
|---|---|
| 134 | |
| 104 | |
| 63 | |
| 60 | |
| 55 |