Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello All,
I have the SQL Query,I need equivalent DAX measure
Select sum(a.sales)
From Sales table a
Where a.orderid not in (select b.orderid from status table b where b.status="S").
This is the SQL Query.
TIA
Solved! Go to Solution.
@likhithar , Try new measure
new measure =
var _tab = summarize(filter(Table, Table[status] = "S"), Table[Orderid])
return
sumx(filter(sales, not(sales[orderid] in _tab), sales[sales])
@likhithar , Try new measure
new measure =
var _tab = summarize(filter(Table, Table[status] = "S"), Table[Orderid])
return
sumx(filter(sales, not(sales[orderid] in _tab), sales[sales])
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 26 | |
| 24 | |
| 16 |
| User | Count |
|---|---|
| 53 | |
| 46 | |
| 38 | |
| 29 | |
| 21 |