Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello!
In excel I have a SUMIfs.
Col A is employee, B is week number and C is hours.
In column D my sumifs would be:
SUMIFS(C:C,A:A,A2,B:B,B2) or sumifs(hours, employee column, A2,week number column, B2)
| Employee | Week Number | Hours |
| Dave | 1 | 4 |
| Mark | 1 | 5 |
| Jacob | 1 | 6 |
| Dave | 2 | 6 |
| Jacob | 1 | 5 |
| Jacob | 2 | 4 |
| Mark | 2 | 3 |
I am having desperate trouble replicating this formula in BI.
Any tips or help would be greatly appreciated.
Thanks
WATER
Solved! Go to Solution.
@Anonymous
See if this post help out or at least can get you started:
https://community.powerbi.com/t5/Power-Query/Function-Excell-Countifs-in-Power-BI/m-p/708835#M23665
@Anonymous
See if this post help out or at least can get you started:
https://community.powerbi.com/t5/Power-Query/Function-Excell-Countifs-in-Power-BI/m-p/708835#M23665
@Anonymous Hi Nick,
Many thanks for your help.
I was able to solve my issue with a variation of this formula:
CALCULATE(SUM(Table1[Hours]), FILTER(Table1, Table1[Employee] = EARLIER (Table1[Employee])), (Table1[Hours]),FILTER(Table1, Table1[Week Range] = EARLIER (Table1[Week Range])), (Table1[Hours]))
Many thnaks again
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |