March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello, I have a table with the monthly terminations Jan to Sep. 2022 and the respective monthly headcount (HC). I need both KPI's to calculate the turn-over rate. The monthly turn-over rate works but in the total the value is wrong. The sum of headcount doesn't make sense, I need the average instead.
That's why I'm searching for the possibility to get in the total of the HC column the average headcount instead of the sum. Some ideas?
Solved! Go to Solution.
Hi @Werfuks ,
Please try:
HC = DIVIDE(CALCULATE(SUM('Table'[Headcount]),ALLEXCEPT('Table','Table'[Month/Year])),DISTINCTCOUNT('Table'[Month/Year]))
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Werfuks ,
Please try:
HC = DIVIDE(CALCULATE(SUM('Table'[Headcount]),ALLEXCEPT('Table','Table'[Month/Year])),DISTINCTCOUNT('Table'[Month/Year]))
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Werfuks ,
try this
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Werfuks ,
Based on your description, I have created a simple sample:
Please try:
Measure = IF(ISINSCOPE('Table'[HC]),SUM('Table'[HC]),AVERAGE('Table'[HC]))
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, thank you very much for your proposal. I guess I should have explained the basis of my data a bit more detailed. Sorry for that!
I don't have a table like this:
My basis table is like this for round about 17000 employees for every month:
The dashboard use two slicers. One for the country and one for location which should help the user to see how much headcount in total he has in a selected country or in a selected location eg. in Feb 2022 and what the YTD average is.
With my basis table I was not able to calculate an average. Average was always 1.
As a workaround I tried to create a new agregated table based on this basis table by using the summarize function with regards to the country. The total and the average worked with regards to the country, if the user select only a country but not if the user select a location because my summarize function is only summarizing countries. At this stage I am not sure if I can create a table based on the slicers or if I think much to difficult and don't see the easy solution? Best regards Christian
I share with you my pbi sample file:
https://1drv.ms/u/s!Aj45jbu0mDVJiHRJvAMfvPPe444G?e=LiXc8R
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Werfuks
you can take another table and do not consider or add month there and you can consder average in the value
Hi mangaus111, if I use this possibility I receive always "1". In the months and in the total.
Otherwise you can simply select from here the average, instead of the sum
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Werfuks ,
use thie measure:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
84 | |
66 | |
54 | |
43 |
User | Count |
---|---|
203 | |
106 | |
98 | |
65 | |
56 |