Forum Discussion
Count a Measure or Countif
# times =
CALCULATE(
COUNTROWS('TransDetail'),
ALLEXCEPT('TransDetail',
'TransDetail'[SYSTEM_NUM],
'TransDetail'[EARN_DEDUCT_IND]=1) 'the underline part gives an error'
)t
! A single value for column EARN_DEDUCT_IND in TransDetail cannot be determined. THis can happen when a measure formula to a column that contains many values without specifying an aggregation such as min, max, count or sum to get to a single result.
Is this what you meant?
Please try the DAX below.
# times =
CALCULATE(
COUNTROWS('TransDetail'),
FILTER(ALLEXCEPT('TransDetail',
'TransDetail'[SYSTEM_NUM]),
'TransDetail'[EARN_DEDUCT_IND]=1)
)
Regards,
Charlie Liao
- Anonymous8 years agoNot applicable
I am facing the same issue with getting count of measure output. Can you please help in providing the specific solution!
Thanks
- Anonymous8 years agoNot applicable
Hello,
I am facing the same problem with getting count of measure. Can you please provide a relevent solution.
Thanks,
rax