Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi there,
I have all 2022 staff turnover data isolated in one excel document. Our Voluntary turnover rate needs to consider 3 conditions: was the employee permanent? was the employee full-time? did the employee leave voluntarily? Each of these pieces of information are in separate columns in my data. I just need to add all employees who were terminated if they meet these 3 conditions. What dax formula should I use?
Check this one...Thanks!!
Thanks for your help!! Power BI isn't recognizing the term FactTable
Usually fact table refers to your own table fact table could be like fkr examlle your 'turnovertable' or 'salestable'
When you see fact table this what it means while if someone uses dimtable
It usually means like a calendar table or your seperate product table usually it has 1 id only
Dim tables are used for better relationship building so you can use dim table like a calendar table to form a relationship with multiple fact tables like example sales table and quantitity table and cost table...
So in your case, switch facttable with the name of your table
I feel like we are getting close but this VAR fields are coming up with errors. See screenshot belwo.
In your formula where result is,
Instead of
Var result = Calculate(SUM('SAP-turnover-final[personnel no.])
You need to do
Var result = Calculate(SUM('SAP-turnover-final[personnel no.]),-T)
RETURN
result
You forgot to include return result
Okay, yes that got me a bit further!
This message is still coming up
In your var result your forgot to put a comma after the sum expression so sum('your table'[your column]),_T) not = T its ,_T this is because calculate expression refers to your expression then comma then filters
Since _T is the filter you made above in the var so the exoression is your sum then the filter is _T
Ah, okay thanks I'll try that!
Sure, here you go
Name of Action Type | P.Subarea Text | Personnel Area Text | Name of Employee Group | Name of EE Subgroup | From | End Date | Company Name | Start Date | Age | Type | YOS | Flag |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 09/01/2022 | 12/31/9999 | City of Barrie | 9/28/1987 | 67 | Retirement | 35.25833 | Permanent Full-Time |
Retirement with Benefits | CoB NUG | COB - Non-Union | Retired | Full-Time | 06/01/2022 | 12/31/9999 | City of Barrie | 6/13/1988 | 60 | Retirement | 34.55 | Retired Full-Time |
Retirement with Benefits | CoB NUG | COB - Non-Union | Retired | Full-Time | 05/28/2022 | 12/31/9999 | City of Barrie | 8/2/1988 | 58 | Retirement | 34.41389 | Retired Full-Time |
Retirement with Benefits | CoB NUG | COB - Non-Union | Retired | Full-Time | 06/26/2022 | 12/31/9999 | City of Barrie | 6/25/1990 | 61 | Retirement | 32.51667 | Retired Full-Time |
Retirement with Benefits | CoB CUPE | COB - CUPE | Retired | Full-Time | 02/26/2022 | 12/31/9999 | City of Barrie | 6/24/2020 | 61 | Retirement | 2.519444 | Retired Full-Time |
Retirement with Benefits | CoB CUPE | COB - CUPE | Retired | Full-Time | 01/01/2022 | 12/31/9999 | City of Barrie | 10/17/1994 | 59 | Retirement | 28.20556 | Retired Full-Time |
Retirement with Benefits | FF BPFFA | COB - BPFFA/Comm Op | Retired | Full-Time | 11/22/2022 | 12/31/9999 | City of Barrie | 10/28/1996 | 59 | Retirement | 26.175 | Retired Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 08/01/2022 | 12/31/9999 | City of Barrie | 4/21/1997 | 60 | Retirement | 25.69444 | Permanent Full-Time |
Termination | CoB CUPE | COB - CUPE | Casual | Full-Time | 11/05/2022 | 12/31/9999 | City of Barrie | 4/12/2021 | 57 | End of Contract | 1.719444 | Casual Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 08/01/2022 | 12/31/9999 | City of Barrie | 1/2/2001 | 65 | Retirement | 21.99722 | Permanent Full-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 01/01/2022 | 12/31/9999 | City of Barrie | 9/2/2020 | 67 | End of Contract | 2.330556 | Casual Part-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 11/01/2022 | 12/31/9999 | City of Barrie | 10/17/2002 | 47 | Voluntary | 20.20556 | Permanent Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 09/16/2022 | 12/31/9999 | City of Barrie | 10/25/2004 | 65 | Retirement | 18.18333 | Permanent Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 07/23/2022 | 12/31/9999 | City of Barrie | 12/5/2005 | 38 | Voluntary | 17.07222 | Permanent Full-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Full-Time | 10/25/2022 | 12/31/9999 | City of Barrie | 10/19/2022 | 53 | End of Contract | 0.2 | Casual Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 08/05/2022 | 12/31/9999 | City of Barrie | 7/23/2007 | 60 | Retirement | 15.43889 | Permanent Full-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 01/04/2022 | 12/31/9999 | City of Barrie | 9/3/2020 | 60 | Voluntary | 2.327778 | Casual Part-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 09/23/2022 | 12/31/9999 | City of Barrie | 5/25/2013 | 30 | End of Contract | 9.6 | Casual Part-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 09/23/2022 | 12/31/9999 | City of Barrie | 10/11/2007 | 30 | End of Contract | 15.22222 | Casual Part-Time |
Termination | CoB CUPE | COB - CUPE | Casual | Full-Time | 11/19/2022 | 12/31/9999 | City of Barrie | 4/12/2021 | 67 | End of Contract | 1.719444 | Casual Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 10/01/2022 | 12/31/9999 | City of Barrie | 8/15/2011 | 35 | Voluntary | 11.37778 | Permanent Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 07/01/2022 | 12/31/9999 | City of Barrie | 12/15/2008 | 55 | Retirement | 14.04444 | Permanent Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 04/28/2022 | 12/31/9999 | City of Barrie | 3/23/2009 | 47 | Voluntary | 13.77222 | Permanent Full-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 09/23/2022 | 12/31/9999 | City of Barrie | 9/6/2016 | 28 | End of Contract | 6.319444 | Casual Part-Time |
Salary Continuation | CoB NUG | COB - Non-Union | Permanent | Full-Time | 11/21/2022 | 12/31/9999 | City of Barrie | 1/24/2011 | 40 | Involuntary | 11.93611 | Permanent Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 06/10/2022 | 12/31/9999 | City of Barrie | 5/16/2011 | 36 | Voluntary | 11.625 | Permanent Full-Time |
Retirement with Benefits | FF BPFFA | COB - BPFFA/Comm Op | Retired | Full-Time | 06/01/2022 | 12/31/9999 | City of Barrie | 4/7/2022 | 54 | Retirement | 0.733333 | Retired Full-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 02/08/2022 | 12/31/9999 | City of Barrie | 7/27/2020 | 44 | End of Contract | 2.427778 | Casual Part-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 01/23/2022 | 12/31/9999 | City of Barrie | 9/12/2020 | 27 | Voluntary | 2.302778 | Casual Part-Time |
Termination | CoB CUPE | COB - CUPE | Casual | Full-Time | 11/17/2022 | 12/31/9999 | City of Barrie | 4/12/2021 | 62 | End of Contract | 1.719444 | Casual Full-Time |
Termination | CoB CUPE | COB - CUPE | Permanent | Full-Time | 09/01/2022 | 12/31/9999 | City of Barrie | 11/17/2011 | 46 | Voluntary | 11.12222 | Permanent Full-Time |
Termination | CoB NUG | COB - Non-Union | Casual | Part-Time | 09/23/2022 | 12/31/9999 | City of Barrie | 12/13/2016 | 27 | End of Contract | 6.05 | Casual Part-Time |
Termination | CoB NUG | COB - Non-Union | Permanent | Full-Time | 09/24/2022 | 12/31/9999 | City of Barrie | 7/3/2012 | 41 | Voluntary | 10.49444 | Permanent Full-Time |
Hey,
I hope you are doing well!
Share some demo data along with the desire output.
thanks,
Ajendra
can you please show some sample data
User | Count |
---|---|
15 | |
13 | |
12 | |
10 | |
10 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |