Hi Anindya,
I hope, following solution will help you to solve your problem.
I have created dummy table and tried to build calculation view on top of single table.
Step 1 : bring your table either in aggregation node or projection node. right click on ORDER_QUAN and select 'Add To Output'. Do not select as 'Add as Aggregated column', if it is aggregation node.
Step 2 : Following columns I have selected for desired output
Step 3 : Connect bottom node with top aggregated node and select DOC_NUM as 'Add as Aggrigated column'
Step 4 : set keep flag = True on DOC_NUM column. It will help for aggregation.
Step 5 : Activate your view and try to see your output at Analysis tap.
Output 1 :
Output 2 :
Happy learning...!
Regards,
Vikram Divekar