<div dir="ltr"><div>$id is a function that returns the current layer row id. This id is somehow internal to QGIS and not actually a layer field.</div><div><br></div><div><a href="https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/functions_list.html#expression-function-record-and-attributes-id">https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/functions_list.html#expression-function-record-and-attributes-id</a></div><div><br></div><div>The @atlas_featureid is the equivalent for the coverage layer. <br></div><div><br></div><div>So, if we are talking about the same layer then the two functions represent the same feature.</div><div><br></div><div>Hope it clarifies.</div><div><br></div><div><font color="#888888"><div>Alexandre Neto</div><div>User Support</div><div><a href="http://www.qcooperative.net" target="_blank">www.qcooperative.net</a></div></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 12, 2021 at 2:39 PM Dario C <<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"><div dir="ltr">thank you for your quick response.<div><br></div><div>atlas coverage layer is the building layer</div><div><br></div><div>Yes, with $id = @atlas_featureid is working well!!! Thank you</div><div><br></div><div>Can you please explain, if you don't mind, why? I mean, what's @atlas_featureid and why $id = @atlas_featureid solve the problem?<br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 12 nov 2021 alle ore 15:04 Alexandre Neto <<a href="mailto:senhor.neto@gmail.com" target="_blank">senhor.neto@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">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" target="_blank">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>
</blockquote></div>
</blockquote></div>