The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I need to make a projection calculation and I'm a bit lost how to do that.
I have actual data of the leaving employee count per month. I have the below chart with 3 measures:
This chart can be dynamically modified by a date slicer. I want to create attrition projections. Attrition is always calculated in a 12 months timeframe.
First, I need to create a measure that is able to show future voluntary leaver projection based on the average of the actuals choosen by the date range slicer. For example, if only 2022-11 and 2022-12 is choosen, we have (48+24)/2=36 leavers per month, which means in the next 10 month we can expect 36 leavers each month, 432 in sum. If 4 months are selected in the date range slicer, the projection only goes for the next 8 months and each month the leaver count is the avg of this 4 month.
If more that 12 months is selected only the leaver count will be shown, the attrition projection is not applicable.
Based on this the attrition projection will be easy to do.
Can you advise what functions to use to achive that?
Thanks,
I've created this measure based on your suggestion:
To create an attrition projection based on the selected date range in the slicer, you can use a combination of the SUMX and AVERAGE functions in Power BI.
Here is an example of how you can create a measure for future voluntary leaver projection:
The above measure filters the table based on the selected date range in the slicer and calculates the average of the leavers count.
The above measure uses the SUMX function to sum the leavers per month for the next 10 months, but also uses a filter to check if the leaver projection will be based on the actuals within 12 months only and not more. If more than 12 months is selected in the date slicer, the result will be the actuals count and not the projection.
This should give you the total number of future voluntary leavers based on the average leavers per month and the number of future months. You can then use this measure to create a chart or table to visualize the projections.
You can also create similar measure for the Attrition projection.
Hi there,
Thanks for the quick feedback!
What is RANGENUMBER? Power BI does not seem to recognize this function.
Thanks!