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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

New Hire Count, New Hires SPLY and Actives YOY % Change

I'm trying to recreate the below chart from the Human Resources Sample report that Microsoft offers.2017-10-24_10-16-45.png

 

However, I'm unable to create the YOY % Change and when I show the SPLY, I can only do it by actually showing the las tyear data which leaves me with the below chart.

2017-10-24_10-21-35.png

I'm using the below formulas:

Employee Count = DISTINCTCOUNT( [Employee ID] )

Employee Count LY = CALCULATE( DISTINCTCOUNT( [Employee ID] ), SAMEPERIODLASTYEAR( [Hire Date] ) )

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@v-yulgu-msft

 

Thank you for the help! That did the trick for the YOY % Change. For reference, the solution was below:

 

YOY % Change = 
DIVIDE(
	(DISTINCTCOUNT([Employee ID])-[Employee Count LY]),[Employee Count LY]	
)

As for getting the Employee Count SPLY to only show the one year as in the HR dashboard, I had to create a date table and tie that to the chart. Then I was able to set a relative filter to the calendar table's date field.

 

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

What do you mean "unable to create the YOY % change"? Since you have get the result of this year and last year employee count, you only need to create another measure:

YOY%=DIVIDE(([Employee Count]-[Employee Count LY]),[Employee Count LY])

 

Then, add this YOY measure into line section.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yulgu-msft

 

Thank you for the help! That did the trick for the YOY % Change. For reference, the solution was below:

 

YOY % Change = 
DIVIDE(
	(DISTINCTCOUNT([Employee ID])-[Employee Count LY]),[Employee Count LY]	
)

As for getting the Employee Count SPLY to only show the one year as in the HR dashboard, I had to create a date table and tie that to the chart. Then I was able to set a relative filter to the calendar table's date field.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.