You need to first extract the max of the column in question and then use it in the CreateDataview: In one line:
B4XTable1.CreateDataView($"${NumberColumn.SQLID} = (SELECT max(c0) FROM data)"$) 'better way
or in 2 lines below:
Dim x As Int =B4XTable1.sql1.ExecQuerySingleResult($"SELECT max(c0) FROM data"$) 'c0 is 1st col, c1 is 2nd
B4XTable1.CreateDataView($"${NumberColumn.SQLID} = ${x}"$)
If NumberColumn is 1st use c0 with max, if 3rd use c2, etc. If this does not solve it for you, export your project to forum.