web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to exclude absence from the Resource Utilisation report?

(0) ShareShare
ReportReport
Posted on by 1,000
Hi all,
 
I have entered the Resource capacity for a resource, so that the Resource Utilisation report shows the capacity 37.5 hours in the whole week.
The time sheet has been posted as below. It mixes up the project and absence in the same week.
 
The Resource Utilisation report shows as below:
 
The report doesn't reduce the absence from the capacity, it is confusing users and make users think there are still capacity in the week.
 
Is there any configuration on the report to show real capacity?
 
Thank you.
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,944 Super User 2026 Season 1 on at
    If approved absence timesheet hours must reduce the balance in the Resource Utilisation report, customization is required.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,944 Super User 2026 Season 1 on at

    I checked the standard Resource Usage report logic. The report calculates: Balance = Capacity - "Usage (Qty.)"

    It does not contain any request-page option, setup field, or separate calculation to subtract Absence hours from Capacity.
    Therefore, if absence should automatically reduce the available balance, customization is required. This can either extend the report calculation to include absence hours or update Resource Capacity based on approved absence timesheets.
     
    Do something like below:
    reportextension 50100 "Res Usage Absence Ext" extends "Resource Usage"
    {
        dataset
        {
            add(Resource)
            {
                column(AbsenceQty; AbsenceQty)
                {
                }
                column(AvailableCapacity; AvailableCapacity)
                {
                }
            }
            modify(Resource)
            {
                trigger OnAfterAfterGetRecord()
                begin
                    CalculateAbsence(Resource);
                    AvailableCapacity :=
                        Resource.Capacity -
                        Resource."Usage (Qty.)" -
                        AbsenceQty;
                end;
            }
        }
        rendering
        {
            layout(ResourceUsageWithAbsence)
            {
                Type = RDLC;
                LayoutFile = './src/Reports/ResourceUsageWithAbsence.rdlc';
                Caption = 'Resource Usage with Absence';
            }
        }
        var
            AbsenceQty: Decimal;
            AvailableCapacity: Decimal;
        local procedure CalculateAbsence(Resource: Record Resource)
        var
            TimeSheetDetail: Record "Time Sheet Detail";
            DateFilter: Text;
        begin
            Clear(AbsenceQty);
            DateFilter := Resource.GetFilter("Date Filter");
            TimeSheetDetail.SetRange("Resource No.", Resource."No.");
            TimeSheetDetail.SetRange(Type, "Time Sheet Line Type"::Absence);
            TimeSheetDetail.SetRange(Posted, true);
            if DateFilter <> '' then
                TimeSheetDetail.SetFilter(Date, DateFilter);
            if TimeSheetDetail.FindSet() then
                repeat
                    AbsenceQty += TimeSheetDetail."Posted Quantity";
                until TimeSheetDetail.Next() = 0;
        end;
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,690 Super User 2026 Season 1

#2
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,091 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans