• 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

FX Measure In Power Pivot|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / FX Measure In Power Pivot|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 PivotFX Measure In Power Pivot
sp_PrintTopic sp_TopicIcon
FX Measure In Power Pivot
Avatar
Hitesh Dangodara
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 26, 2019
sp_UserOfflineSmall Offline
1
February 5, 2021 - 9:12 pm
sp_Permalink sp_Print sp_EditHistory

Hello,

 

I am new in This group, thanks in advance. Any one please help me to how to count Average head count. That can help me lot.

 

Heading Discretion FX Formula
JoinersCounts Per month Joiner CALCULATE(COUNTROWS(Joiners))
leaversCounts Per month Leavers CALCULATE(COUNTROWS(Leavers))
Active Head Count Net Change CALCULATE([JoinersCounts]-[leaversCounts], FILTER(ALLSELECTED ('Date'[Date]), ISONORAFTER ('Date'[Date], MAX('Date'[Date]), DESC)))
YTD_Joiners Year star date till month JoinersCounts CALCULATE([JoinersCounts], DATESYTD('Date'[Date],"31/12"))
YTD_Leavers Year star date till month leaversCounts CALCULATE([leaversCounts], DATESYTD('Date'[Date],"31/12"))
YTD Avg HC Avg of Year till of Active Active Head Count Can you please how to count Average of Active Head count
Month numric Month No No of month / Quarter
Monthly Attrition  (YTD_Leavers/YTD Avg HC*12)/Month Can you please how to count Monthly Attrition

 

Date (Quarter) Date (Month) Joiners Counts leavers Counts Active Head Count YTD Joiners YTD Leavers Avg HC Month Monthly Attrition 
Qtr1 Jan 10 5 25 10 5 25 1 240.0%
  Feb 15 7 33 25 12 29 2 248.3%
  Mar 20 8 45 45 20 34 3 233.0%
Qtr1 Total   45 20 45 45 20 34 3 235.3%
Qtr2 Apr 15 4 56 60 24 51 4 142.6%
  May 20 5 71 80 29 57 5 121.4%
  Jun 25 9 87 105 38 65 6 117.4%
sp_AnswersTopicSeeAnswer See Answer
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1807
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
February 9, 2021 - 6:27 pm
sp_Permalink sp_Print

Hi Hitesh,

RunningSum = SUMX(FILTER(ALLSELECTED('Date'[Date]),'Date'[Date]<=MAX('Date'[Date])),[Active Head Count])

A month Count is needed:

MonthCount =
VAR _start = STARTOFYEAR( 'Calendar'[Date] ) -1
VAR _end = ENDOFMONTH( 'Calendar'[Date] )
RETURN DATEDIFF( _start, _end, MONTH )

(you can use though the Month column you have)

YTD Avg HC=DIVIDE(RunningSum, MonthCount)

Monthly Attrition = ([YTD_Leavers]/[YTD Avg HC]*12)/MonthCount

sp_AnswersTopicAnswer
Answers Post
Avatar
Hitesh Dangodara
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 26, 2019
sp_UserOfflineSmall Offline
3
February 25, 2021 - 11:14 pm
sp_Permalink sp_Print

Dear Sir,

Thank you so much sir for helping me. but i don't know what i am doing wrong. 

I am attaching my file, please help me to get  Average Head count and attrition.

Your help can save my life.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4446
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
March 8, 2021 - 9:48 am
sp_Permalink sp_Print

Hi Hitesh,

No file attached. Please be sure to click 'start upload' after selecting your file.

I think this is a Power Pivot question, not Power Query.

Mynda

Avatar
Hitesh Dangodara
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 26, 2019
sp_UserOfflineSmall Offline
5
March 8, 2021 - 4:09 pm
sp_Permalink sp_Print sp_EditHistory

Sorry my mistake, attaching file again

Please help me out calculate Average Head count & Attrition in Power Query.  File Attached.
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1807
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
6
March 9, 2021 - 3:38 pm
sp_Permalink sp_Print

Hi Hitesh,

As mentioned, for the Average you need a month count:

MonthCount:=VAR _start = STARTOFYEAR( ALL('Date'[Date] ))

VAR _end = ENDOFMONTH( 'Date'[Date] )

RETURN DATEDIFF( _start, _end, MONTH )+1

 

Then, the YTD Avg HC is very simple:

YTD Avg HC:=DIVIDE([Active Head Count], [MonthCount])

Monthly Attrition is basically your formula:

Monthly Attrition:=([YTD_Leavers]/[YTD Avg HC]*12)/[MonthCount]

Avatar
Hitesh Dangodara
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 26, 2019
sp_UserOfflineSmall Offline
7
March 16, 2021 - 7:15 pm
sp_Permalink sp_Print

Dear Sir,

Please help me for above topic, if you have not understand my question than please let me know. i have put excel formula how i want answer, i don't know how to get answer in Power pivot.

Sorry to disturb you but this problem can solve lots of my issue.

Again Thank you so much in advance. 

Avatar
Hitesh Dangodara
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 26, 2019
sp_UserOfflineSmall Offline
8
March 27, 2021 - 11:05 pm
sp_Permalink sp_Print sp_EditHistory

Dear Team,

 

Please help me to find Average of Active Head count using measures.

Active Head Count := CALCULATE( [JoinersCounts]- [leaversCounts],FILTER (ALLSELECTED ('Date'[Date]), ISONORAFTER ('Date'[Date], MAX('Date'[Date]), DESC)))
Avg. of Active Head Count Please help me to find Avg. of Active Head Count for each month example given below. If possible please do calculation in attached excel only.
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Scott Miller, Roy Lutke, Jeff Krueger, Darrell Hodge, Francisco Luna
Guest(s) 10
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:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
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.