I have been trying to make an atlas of cadasters, using different themes and rule-based symbolology, but one thing doesn't seem to work. On each atlas-page I want to put a table showing the coordinates of the vertices of the featured lot. The featured layer is a polygon layer of which I use one column with a unique cadastral code as the atlas page name. I made a separate point layer extracting the vertices from the polygons, deleted all the vertex 0's to not have any doubles and added columns for x and y. I also changed the symbolology so only the points whose cadastral code is equivalent to the page name are shown, this all works fine with the @atlas_pagename code. However if I use the same rule to filter the attribute table that I put in the print composer I get no entries when I filter it with the "code"=@atlas_pagename. It seems to work fine if I immediately put the value that @atlas_pagename is supposed to generate, but obviously I cannot do this for each page in a 1000 page atlas.
I have tried putting to_string(@atlas_pagename), to_real(...), to_int(...), all to no avail. And when I select the option to just show objects that are within the atlas feature there are too many as it also shows the vertices of bordering polygons.
Is there way to make @atlas_pagename work in the filter of the attribute table that is shown on each atlas page?