The phenomenon of partial discharge (PD) in power cables can result in insulation degradation and eventual failure if left undetected and unaddressed. As a result, the measurement of PD is key to evaluating the performance of insulation diagnostics in the power cables. This paper presents a PD measurement model for internal cavities in XLPE insulating material for medium voltage power cables. The proposed PD measurement model is designed using the COMSOL Multiphysics software as a finite element analysis (FEA) tool added to MATLAB environment, specifically tailored for power cables. The proposed PD measurement model uses the multiphysics capabilities of COMSOL to simulate the electrical discharges behavior within power cables. The model considers factors such as cable geometry, material properties, cavity size, applied voltage and numerical conditions to accurately capture the PD characteristics. Distributions of both electric potential and electric field were studied before and after occurrence of PD across the internal cavity. According to the results, it has been noticed that the discharge magnitude mainly depends on the cavity diameter; as increasing cavity diameter leads to increasing the magnitude of the measured PD. Moreover, the leakage current magnitude is recorded during the PD event period. The proposed model also enables the evaluation of different cable designs, insulation materials, and operating conditions to optimize cable performance and mitigate PD risks.