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
Hello,
Could you please help in converting the below sql into DAX command.
select count(*) from table1
where column1 < 0.6
Thanks
Raghu
Solved! Go to Solution.
countrows(filter(NvmWritingsInkUsage,NvmWritingsInkUsage[nvm_life]>.6 && NvmWritingsInkUsage[nvm_life] <.8))
Also, I was trying on the below sql query with DAX command but it seems to be invalid. can you please help me to find mistake in the below DAX.
countrows(filter(NvmWritingsInkUsage,NvmWritingsInkUsage[nvm_life]>.6 and <.8)).
select count(*) from table1
where column1 > 0.6 and column1 < 0.8
countrows(filter(NvmWritingsInkUsage,NvmWritingsInkUsage[nvm_life]>.6 && NvmWritingsInkUsage[nvm_life] <.8))
Try a measure
countx(filter(Table1,Table[column1]<.6), Table[column1])
Or a measure like
countrows(filter(Table1,Table[column1]<.6))
@amitchandak Thanks for the quick response. this command is working. I'm need to validate with the data with business. I will let you know.
Thanks
Raghu
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 27 | |
| 17 | |
| 11 | |
| 10 |