From a layer of overlapping points (identical coordinates) containing the field "RC", I'm using the following expression to make the label of unique values:
array_to_string(array_distinct(array_prepend(overlay_equals(@layer, "RC"), "RC")),'RC')
And to avoid duplicates I use the following expression in the labeling option 'Show label'.
$id=array_agg($id, "XCOORD"||"YCOORD")[0]
I would like, if possible, to reuse the labeling expression, to format the list of values to appear in a series of 2 columns of 2 records:
Simulation