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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Danthe-Nagaraju
New Member

Need Periodical count of employees by his manager

I am Struggling to get periodical count of employees, based on the Functional Manager and week Number
The example table

Week NumberEmployees.IdFullnameFunctional ManagerStartdateTermination DateEmployment Status
411416AmirWilliam7/1/2022 0:00 Active
411489AnandMahesh9/12/2022 0:00 Active
411505SantoshPradeep10/10/2022 0:00 Active
411506VinethWilliam10/10/2022 0:00 Active
411507JohnMahesh10/10/2022 0:00 Active
411508PraneethPradeep10/12/2022 0:0010/14/2022 0:00Inactive
411509ThomasWilliam10/12/2022 0:00 Active
421416AmirWilliam7/1/2022 0:0010/29/2022 0:00Inactive
421489AnandMahesh9/12/2022 0:0010/25/2022 0:00Inactive
421505SantoshPradeep10/10/2022 0:00 Active
421506VinethWilliam10/10/2022 0:00 Active
421507JohnMahesh10/10/2022 0:00 Active
421509ThomasWilliam10/12/2022 0:00 Active
431505SantoshPradeep10/10/2022 0:00 Active
431506VinethWilliam10/10/2022 0:00 Active
431507JohnMahesh10/10/2022 0:00 Active
431509ThomasWilliam10/12/2022 0:00 Active

 

Need to know the Count of employees By week wise 41,42,43 howmany employees are reporting to William, Mahesh and Pradeep so on dynamically.
I hope I can get help.

2 REPLIES 2
Danthe-Nagaraju
New Member

Hi Jihwan,
Thanks for the concern
i need the total count of employees who are reporting to the certain person for certain week.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

I suggest having a calendar table like the attached file.

Please check the below picture and the attached pbix file.

Jihwan_Kim_1-1669120424556.png

 

 

Jihwan_Kim_0-1669120405288.png

 

Count of active employee: = 
COUNTROWS (
    FILTER (
        Data,
        Data[Startdate] <= MAX ( 'Calendar'[Date] )
            && OR ( Data[Termination Date] >= MIN ( 'Calendar'[Date] ), BLANK () )
    )
)

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.