In 2024R2, we customized a report based on Acumatica's built-in Inventory Balance (IN615000) page. The main change was to group by a custom field of the stock item and then count the quantity of each group.
I added a variable here.

Strangely, only the value of the first group was correctly summed. The values of the next two groups were both 0.

Can anyone give me some guidance?
The customized report is attached.

