Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
msit19
Frequent Visitor

How Convert this Sql to Dax ?

sql.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@msit19, you can try a new table as

nueva tabla ?
var _tab1 - summarize(filter(Tab1, Tab1[FLD] á"XX"),Tab1[ID])
var _tab3 - summarize(filter(Tab3, Tab3[ID] en tab1),Tab1[ID])
devolución
filter(Tab2, not(Tab2[FLD1] en _tab3))

o nueva medida como
nueva medida ?
var _tab1 - summarize(filter(Tab1, Tab1[FLD] á"XX"),Tab1[ID])
var _tab3 - summarize(filter(Tab3, Tab3[ID] en tab1),Tab1[ID])
devolución
countx(filter(Tab2, not(Tab2[FLD1] en _tab3)), Tab2[ID])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@msit19, you can try a new table as

nueva tabla ?
var _tab1 - summarize(filter(Tab1, Tab1[FLD] á"XX"),Tab1[ID])
var _tab3 - summarize(filter(Tab3, Tab3[ID] en tab1),Tab1[ID])
devolución
filter(Tab2, not(Tab2[FLD1] en _tab3))

o nueva medida como
nueva medida ?
var _tab1 - summarize(filter(Tab1, Tab1[FLD] á"XX"),Tab1[ID])
var _tab3 - summarize(filter(Tab3, Tab3[ID] en tab1),Tab1[ID])
devolución
countx(filter(Tab2, not(Tab2[FLD1] en _tab3)), Tab2[ID])

thanks 🙂

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.