Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
unnijoy
Post Prodigy
Post Prodigy

Formula help

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.

MonthWeek0-30
June11
June12
June 31
June 34
July15
July32
July34
July44
July44
July45

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)

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@unnijoy

 

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 )
        )
    )
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@unnijoy

 

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 )
        )
    )
)

@Zubair_Muhammad thanks a lot. It is working. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors