Hi Community,
Currently i have built the workflow which there will be two input of data and will be merged together. Before merging them together, i would like to summarize both data as per screenshot below.

However, i was unable to produce the desired result as per screenshot below :

Screenshot below is as per Alteryx result which is quite different with my desired result.

May i know how to fix the formula in the Alteryx?
Thank you so much for your help.