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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.