Hi Paramvir,
When grouping, I want to group only when the value of the grouping target cell is not blank.
For example, if the value of item4 is blank, I want to group to item3, and if the value of item4 is not blank, I want to group to item4.
Below is the link of the jsfiddle:
https://jsfiddle.net/bzsgftyk/Thank you.