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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AliShahab88
Helper I
Helper I

how to convert SQL query to Power BI DAX

Dear All,

 

I need to convert below SQL query to Power BI DAX, plz help me regarding below issue

 

SELECT department_scheme_id FROM `scheme_districts` s where s.district_id IN (' . implode(',', $_GET['dist']) . ') and s.`department_scheme_id` not in (select si.`department_scheme_id` from scheme_districts si where si.`district_id` NOT IN (' . implode(',', $_GET['dist']) . '))

1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Please show the expected outcome.

 

(Don't "fight the API" . Formulate your business problem and then implement the solution in Power BI. Doesn't matter how you did it in SQL).

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.