Forum Discussion
Countrows - Counting all rows of table, although filtered
- 5 years ago
Anonymous , the Above formula, should work for what you shown in excel
Team size = CALCULATE(COUNT(Table2[Manager]),FILTER(allselected(Table2),Table2[Manager]=max(Table2[Manager])))
or
Team size = CALCULATE(COUNT(Table2[Manager]),Allexcept(Table2,Table2[Manager]))
Anonymous , the expected output is not clear . But try like
Team size = CALCULATE(COUNTROWS(Table2),FILTER(allselected(Table2),Table2[Manager]=max(Table2[Manager])))
- Anonymous5 years agoNot applicable
Thanks amitchandak. It did not work, unfortunately. It outputed the same value in all rows as well.
I'm adding a print screen of an excel with my wanted output, hope it explains.
- amitchandak5 years ago
Super User
Anonymous , the Above formula, should work for what you shown in excel
Team size = CALCULATE(COUNT(Table2[Manager]),FILTER(allselected(Table2),Table2[Manager]=max(Table2[Manager])))
or
Team size = CALCULATE(COUNT(Table2[Manager]),Allexcept(Table2,Table2[Manager]))
- Anonymous5 years agoNot applicable
Many thanks amitchandak . Worked like a charm!