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 nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
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])
| User | Count |
|---|---|
| 23 | |
| 20 | |
| 19 | |
| 19 | |
| 10 |
| User | Count |
|---|---|
| 54 | |
| 53 | |
| 42 | |
| 38 | |
| 32 |