Forum Discussion
JimJim
8 years agoResponsive Resident
Dax Countx
Hi Guys, I am struggling with a simple countx statement in dax. The following dax isn't working for me, I am getting error 'The function COUNTX cannot work with values of type boolean' CompletedQ...
- 8 years ago
Try this:
CompletedQuery = COUNTX(FILTER('TraceData',TraceData[EventClass] = "RPC:Completed" || TraceData[EventClass] = "SQL:BatchCompleted"), TraceData[EventClass])
Anonymous
8 years agoNot applicable
JimJim Transform your data type to something other than boolean. Countx can be used with numeric, date and text datatypes.