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! Request now

Reply
AnaAlbano
Helper I
Helper I

Dates Parameters for Initial and Final Headcount

Spoiler
Spoiler
Spoiler
Spoiler
Hello Community!

I am trying to use a paramenter in my dashboard, but I am not getting the result I have. The context is: I have to show inital and final headcount and to count the number of employees, I use a column where I have "headcount", as in this table a have others groups as well, such as hires and so on.

I could create a initial and final, but when I try to use a paramenter to give user the possibility to show from when start/end, my headcount start to acumulate. These are my measures:


Initial:

CM_First Headcount =
CALCULATE(
    COUNTROWS(Combined),
    (Combined[CC_tbl_Combined_Table2]="Headcount"),
    DATESINPERIOD(dCalendar[Date],
    MIN(dCalendar[Date]),
    1,
    MONTH
    ))

Final
CM_Last Headcount2 =
CALCULATE(
    COUNTROWS(Combined),
    Combined[CC_tbl_Combined_Table2]="Headcount",
    DATEADD(
        dCalendar[Date],
        9,
        MONTH))

Does any would know how I should write to be able to use the parameter and if the person selects, for exemple: start point set/2022 and end point jan/23, to show the hires in this between?

I tryed to attach a file as reference, but I could not see the option to do it.

AnaAlbano_0-1687864752703.pngAnaAlbano_1-1687864773947.png

 

Spoiler
 

 



Thank you so much!
Ana
0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.