Forum Discussion
Count Rows Function works only for one category
- Anonymous4 years ago
I solved the issue: in the table with the category, model, Update Date, and Count, I had the serial number column. By remove it, the count works. I think that the serial number column was filtering in the measure in some way. Thanks for your support.
Anonymous , what is the expected output?
If this is a column try like
Count = CALCULATE( COUNT('Group'[Model]), filter('Group','Group'[Update Date] = earlier([Update Date] ) && 'Group'[Model] = earlier('Group'[Model])))
if measure , try like
Count = CALCULATE( COUNT('Group'[Model]), filter(allselected('Group'),'Group'[Update Date] = max([Update Date] ) && 'Group'[Model] = max('Group'[Model])))
Thanks for your help. I have tried the measure you posted and the result is the same: it works for the bycicle category and not for the e-bikes category.
The expected output is like the table in the first post with the correct e-bikes count per same model and same Update date. The table shows that there are 2 e-bikes with Go-go model and 12/12/2021 update date, the count is right but they are not grouped in one row.
- amitchandak4 years agoSuper User
Anonymous , if the date does not have timestamp, in table visual both rows should merge. Even for simple count like below example