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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello.
I don't find the answer to this question, I hope you can help me.
I have a query against a database that obtains data:
select year, projection from DimProjections where <conditions>
The result of this query is ALWAYS one row with this structure:
YEAR PROJECTION
------ -----------------
2016 PROJECTION10
I have a FactSales table with many years and many projections (and many other fields), and I need to obtain all the rows except the result of the previous query (all data without 2016 year and PROJECTION10 projection combination).
How can I do this?
Thanks in advance.
Solved! Go to Solution.
Perhaps a Merge query using a Right Anti join (or Left Anti join depending on which one of your queries you consider "first".
Hi @lcerrapa,
smoupre's reply seems well, perhasps you can try it.
In addition, if you use the sql database, you can directly use t-sql query to merge the table at sql statement option:
Regards,
Xiaoxin Sheng
Perhaps a Merge query using a Right Anti join (or Left Anti join depending on which one of your queries you consider "first".
Thanks a lot, it works perfect!!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.