Forum Discussion
Markzolotoy
Impactful Individual
5 years agoDAX - Queries don run
I am learning DAX by reading "The definitive Guide to DAX". So I am typing in the following command:
COUNTROWS(VALUES('TABLENAME'[COLUMNNAME]) and get that query completed with errors. CAn someone tell what the problem is?
Thanks
Markzolotoy
I believe you are using DAX Studio,. To run a measure, wrap it in curly brackets:
EVALUATE
{ COUNTROWS(VALUES('test_ptsd'[payor_name])) }
3 Replies
- Fowmy
Super User
Markzolotoy
Missing the last bracket. Make sure you are creating a New MeasureCOUNTROWS( VALUES('TABLENAME'[COLUMNNAME]) )- Markzolotoy
Impactful Individual
- Fowmy
Super User
Markzolotoy
I believe you are using DAX Studio,. To run a measure, wrap it in curly brackets:
EVALUATE
{ COUNTROWS(VALUES('test_ptsd'[payor_name])) }