Forum Discussion
thatrick1963
2 years agoRegular Visitor
ALL() & The error "COUNT function only accepts a column reference as an argument."
Newbie here, I receive this error message when trying to use the ALL() function in following statement. The COUNT function only accepts a column reference as an argument. Measure = count(all...
- 2 years ago
Thank you so much for the help. Although I chose to use COUNTX, your reply guided me there. The solution that that worked.
DIVIDE(COUNTX('WORK ORDERS','WORK ORDERS'[WO#]),COUNTX(ALL('WORK ORDERS'),'WORK ORDERS'[WO#]))
Ashish_Mathur
Super User
2 years agoHi,
Replace COUNT with COUNTROWS.
Hope this helps.
- thatrick19632 years agoRegular Visitor
Thank you so much for the help. Although I chose to use COUNTX, your reply guided me there. The solution that that worked.
DIVIDE(COUNTX('WORK ORDERS','WORK ORDERS'[WO#]),COUNTX(ALL('WORK ORDERS'),'WORK ORDERS'[WO#]))- Ashish_Mathur2 years ago
Super User
You are welcome.