Forum Discussion
bahadbey
7 years agoNew Member
I'm having trouble converting an SQL query to DAX
Hello everyone,
I'm trying to calculate a turnover indicator for certain departements but I'm having trouble converting an SQL into DAX.
Here is my sql query which works using MSSQL Server.
SELECT cast(count(*) as float) / cast((SELECT count (Distinct EmployeAltID) from DimEmploye) AS float) FROM DimEmploye WHERE ValidTo IS NOT NULL AND EmployeDept = '1';
I can't wrap my head around how to make the query works by converting it to DAX.
Help is much appreciated, thanks!