Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Can any one convert sql query into dax please,
SELECT SUM(
CASE
WHEN vis.CODTYPSUR = par.valpar and vis.CODSTA= 5 THEN
1
ELSE
0
END
) ND,
vis.CODD
FROM dbo.TA vis
INNER JOIN (
SELECT CODD
,VALPAR
FROM dbo.T0
WHERE codpar = 'DE'
) par ON (vis.CODD = par.CODD)
WHERE vis.flgann = 0 and vis.CODSTA in (5,6)
GROUP BY vis.CODD
Thanks in advance
Hi @Anonymous ,
Could you please share some sample data to us for analysis? We need to know the schema of tables.
Best Regards,
Teige
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |