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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have Month, Week and count of new hire . We are entering this data on ever week. I need a formula that will calculate the total newhire for a month or multiple month. The formul should calulate the headcount of last week of the month. If am selecting multiple month it should calculate the headocunt of last week of ever month.
| Month | Week | 0-30 |
| June | 1 | 1 |
| June | 1 | 2 |
| June | 3 | 1 |
| June | 3 | 4 |
| July | 1 | 5 |
| July | 3 | 2 |
| July | 3 | 4 |
| July | 4 | 4 |
| July | 4 | 4 |
| July | 4 | 5 |
The formula should give June HC=5(Sume of June week 3), July as 13 (Sume of July week 4and if am selecting June and July it shoud give 18 ( Sume of June week 3 and July week 4)
Solved! Go to Solution.
If you want the output in a card visual....you can use this
Measure =
CALCULATE (
SUM ( Table1[0-30] ),
GENERATE (
VALUES ( Table1[Month] ),
CALCULATETABLE (
TOPN ( 1, SUMMARIZE ( Table1, [Week], [0-30] ), [Week], DESC )
)
)
)
If you want the output in a card visual....you can use this
Measure =
CALCULATE (
SUM ( Table1[0-30] ),
GENERATE (
VALUES ( Table1[Month] ),
CALCULATETABLE (
TOPN ( 1, SUMMARIZE ( Table1, [Week], [0-30] ), [Week], DESC )
)
)
)
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!