Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I'm trying to replicate the Excel function COUNTIF, to count how many times a manager's name appears in a table. I have read numerous guides on this, and tried a few different ways of solving it, but all end up in the same way. Counting all rows, instead of the ones filtered.
Here is one of the measures I use in a column:
Solved! Go to Solution.
@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]))
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.
@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]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
69 | |
66 | |
51 | |
34 |
User | Count |
---|---|
114 | |
97 | |
75 | |
65 | |
39 |