Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I'm trying to create a dynamic measure that will provide with a total headcount across mutilple fields (columns). Please see image below for example:
I would like a measure that would identify the total headcount for a given contractor or project. I've started with this measure :
Hi, @saavedrag12
Please check the following methods.
Measure =
CALCULATE (
MAX ( Table_Headcount[Headcount] ),
FILTER (
ALL ( Table_Headcount ),
[Contractor] = SELECTEDVALUE ( Table_Headcount[Contractor] )
)
)
Is this the output you expect? If not, please tell the result you expect, showing it in pictures.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
The Calculate function does not allow me to utilize the filter function for the second argument.
Hi, @saavedrag12
Is it possible to show a picture of the problem you encountered and the results you expect?
Best Regards
Could you just show your result in excel?
Can you just tell what number you tring to get?
max headcount of contractor of e? 141?
I'm trying to get the total headcount that will then be adjusted when filters are applied to project and contractor.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |