Forum Discussion
Anonymous
5 years agoNot applicable
SQL to DAX convertion
Hi, everybody! Need help from experienced DAX users in converting SQL to DAX. SQL query provided below. I'm just starting learning DAX, so far this looks incredibly confusing to me( WITH CTE_...
- 5 years ago
Hi Anonymous
Here is the output:
The pbix file is attached, please try it.
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
DouweMeer
Impactful Individual
5 years agoWhat I prefer to use is the expression SELECTCOLUMNS.
SELECT
A.Field1
A.Field2
FROM
Table A
WHERE
A.Field1 = 'A'Becomes
SELECTCOLUMNS
filter ( 'table'
'table'[Field1] = "A"
)
, "Field1" , [Field1]
, "Field2" , [Field2]
)You can use a combination of Union, Generate and Naturalinnerjoin to create a different context.