Forum Discussion
AliShahab88
4 years agoHelper 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
- lbendlinSuper 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).