Relevancy Test for Valuation Using the Principle of Averages (old)
Use
You can flag a payroll period as relevant or irrelevant for the calculation of averages, based on particular criteria. In this respect, you can define a personnel calculation rule according to which a relevancy test is carried out.
The standard system includes the calculation rule X017 (Relevancy Test for Averages). You can modify the calculation rule to meet your enterprise-specific requirements. In the standard system, all previous periods are flagged as relevant in calculation rule X017.

You want to determine that the only payroll periods used in the calculation of averages are those in which the employee has at least 15 social insurance days.
You can create a customer calculation rule to perform this query for each employee and then flag only the periods in which the employee has at least 15 social insurance days as relevant for the calculation of averages.
Prerequisites
In Customizing for Payroll under Time Wage Type Valuation ® Averages Old ® Create Relevancy Test, you can define customer calculation rules for the relevancy test. You must then assign the average calculation rule to a calculation rule in the Calculation Rules for Averages view (V_T511A).
The relevancy test can have the following results:
The average bases of the period are cumulated in accordance with the cumulation rules in view V_T511B Cumulation Rules for Average Bases.
The average bases are not cumulated which means that they are not included in the calculation of averages.