Hello @Avigdor ,
welcome to this moderated Azure community forum.
For as far as I know, transformations like merging multiple components/messages into a new message is not possible with the standard Azure IoT Central abilities.
I expect you need to make use of logic outside Azure IoT Central.
You could make use of the export options of Azure IoT Central, eg. to an Azure EventHub.
This comes with some transformation options but I'm not aware how well this will work in your situation.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.