In Origin 2023, XOP to do statistics on rows uses as below:
statGUI.GUI.InputData.Range1.F$="A[U]:D[U]"; //grouping
2. In Origin 2022b and earlier versions, the 2nd group variable is lost when Change Statistics on rows Parameters.
Fixed in Origin 2023.