I have a labelling issue in QGIS (using 3.4, but haven't tried in other versions). I have polygons for which I show an id number as well as some data information in the labels. I've used rule-based labelling for this: I set two labels and gave them different offsets to the centroid. This results in a two-line-label with on the top part the information you want to display and on the bottom part the id number of the polygon. This is when not using columns to define the X and Y position.
Sometimes the centroid is not where you want it to be, and so you can use X and Y columns to change the position of the label. Problem is that using these columns negates the offsets I set in the labels, so that they are renderend on top of each other. It doesn't help to make the offsets bigger: they just have no effect anymore, I assume because these settings do not affect the data defined label position.
Is there any way to define offsets to a data defined centroid for Polygons? Or does anyone have a different way to achieve the labels that I want without using offsets?