<div dir="ltr"><div>Hi Dario,<br></div><div><br></div><div>If the atlas coverage layer is the buildings layer, then you can use:</div><div><br></div><div>$id = @atlasfeatureid</div><div><br></div><div>If not, if you have a common attribute called ID between the building layer and your coverage layer, you can use:</div><div><br></div><div>"ID" = attributes( @atlas_feature)['ID']</div><div><br></div><div><br></div><div>Hope it helps</div><div><br></div><div>Alexandre Neto</div><div>User Support</div><div><a href="http://www.qcooperative.net">www.qcooperative.net</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 12, 2021 at 1:50 PM Dario <<a href="mailto:dario955i@gmail.com">dario955i@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I’m doing a report and it is happening something odd. I don’t know if it a bug or something I’m not doing well (probably).<br>
<br>
- I have a layer with an ID as integer and unique<br>
- I have categorised my layer by rule, in order to show only the analysed building: “ID=@atlasfeatureid+1”<br>
- I’m using this ID as controller of my group report<br>
- I have added a textfield to show some field and “atlasfeatureid+1” for a double check<br>
- first three pages are ok, after map and text are synchro, but the categorised building does not work and indeed atlasfeatureid shows number completely different with ID <br>
<br>
<br>
I have no idea why :(<br>
<br>
<br>
<br>
<br>
_<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>