• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

HR Dashboard|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / HR Dashboard|Power Pivot|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower PivotHR Dashboard
sp_PrintTopic sp_TopicIcon
HR Dashboard
Avatar
Mike Arnold

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
August 30, 2019
sp_UserOfflineSmall Offline
1
August 30, 2019 - 8:13 am
sp_Permalink sp_Print

Mynda, you are AMAZING!!! I have gone through the HR Dashboard webinar several times and I am trying to replicate what you have done with our company data. The data goes back to 1968. We have 473 active employees. I created the Measurements and the PivotChart. I only want to view the past 4 years with the total headcount. When I select the past 4 years, the numbers only show for those years. What formula would I need to show the active employees with the new hires?

1st - Employee Count GOOD
=CALCULATE(COUNT([EmpID]),FILTER(ALL('HRDashboard'[Date]),[Date]=MAX([Date])))

2nd - Active Employees - GOOD
=CALCULATE([EmpCount],FILTER('HRDashboard',ISBLANK('HRDashboard'[TermDate])))

3rd - New Hires - GOOD
=CALCULATE(COUNT([EmpID]),FILTER('HRDashboard','HRDashboard'[isNewHire]="Yes"))

ACTIVE EMPLOYEES
Tenure Days = =DAYS(TODAY(),F10) OR =DATEDIF(F4,TODAY(),"d")
Tenure Months = =DATEDIF(F3,I3,"M") OR =DATEDIF(F4,TODAY(),"m")
Tenure Years = =DAYS(TODAY(),F10)/365.25 OR =DATEDIF(F4,TODAY(),"y")

TERMED EMPLOYEES
Tenure Days = =DATEDIF(F2,I2,"D")
Tenure Months = =DATEDIF(F2,I2,"M")
Tenure Years = =DATEDIF(F2,I2,"Y")

 

Regards,

Mike

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4438
Member Since:
July 16, 2010
sp_UserOnlineSmall Online
2
August 30, 2019 - 5:00 pm
sp_Permalink sp_Print

Hi Mike,

It's great to hear you've been able to use the techniques in your own work.

I'm confused about your question because the top formulas are DAX measures whereas the bottom formulas are Excel, so I'm not sure what you're trying to do or where you're trying to calculate the figures. Can you please upload a sample file with some anonymised data?

Mynda

Avatar
Mike Arnold

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
August 30, 2019
sp_UserOfflineSmall Offline
3
August 30, 2019 - 10:51 pm
sp_Permalink sp_Print

The Excel formulas were to make sure the data would be linked. The DAX is what I need help with. The PivotChart for Active Employees is not readable because it is too long and overlaps. When I select the last 4 years, only those employees are counted. I want to have all employees counted while only showing the last 4 years. My goal is to break down each location to see trends. 

Mike

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4438
Member Since:
July 16, 2010
sp_UserOnlineSmall Online
4
August 31, 2019 - 4:23 pm
sp_Permalink sp_Print

Hi Mike,

Thanks for sharing your file. If you look at my file you'll see the PivotTable on the Actives sheet uses the Date field, which is the snapshot date, not the Hire Date. 

Your file only has one snapshot date; July 31, 2019. Your chart shows the new hires and active employees over hire dates, but it can't also show the total number of employees at a point in time because there is only one point in time, i.e. July 31, 2019.

BTW, the isNewHire column has some erroneous data. In my file they're only a new hire in the first month they joined. If you look at your file, row 3 for Jerry Barrera has a hire date of Aug 29, 2016 and has 'Yes' in the isNewHire column for the data captured at July 31, 2019. i.e. in my file they're only a new hire when the Date and Hire Dates are for the same month and year.

The measures are designed to work with data captured at monthly intervals (i.e. the 'Date' column) and then analysed using the Date column. For now you can only look at the data as at July 2019.

Note: You also have duplicate employees, e.g. emp ID 1371 is in the table twice. As is 1366, to name just two. There are others.

I hope that points you in the right direction.

Mynda

Avatar
Mike Arnold

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
August 30, 2019
sp_UserOfflineSmall Offline
5
August 31, 2019 - 11:34 pm
sp_Permalink sp_Print

Wow! I have some cleanup to do on the file. The DAKS for employee count should read:

=CALCULATE(COUNT([EmpID]),FILTER(ALL('HRDashboard'[HireDate]),[HireDate]=MAX([HireDate])))

I am looking forward to completing this dashboard. I am using Excel 2019.

You are a wizard with Excel!!!

Mike

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mynda Treacy, Dieneba NDIAYE, Ben Hughes, Dario Serrati, Jay Soysa, Marco Marques, Christopher Anderson
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Kelly smith
Alan Rushton
Zack Nilsson
Forum Stats:
Groups: 3
Forums: 24
Topics: 6200
Posts: 27181

 

Member Stats:
Guest Posters: 49
Members: 31858
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.