How to use switch inside the group aggregation?

Hi @udhaya_kumar_Bagavathiappan, Welcome back,

Please update your post with proper formatting, and also put valid JSON.

Read more about how to format the code,