<div dir="auto"><div>Hi Yann,</div><div dir="auto"><br></div><div dir="auto">As I'm often using reports based on filtered datas, and as I see that you know how to filter, I don't really understand what is the problem. You can just apply a filter in the main ui on the a or b layer, or make virtual layers with only the needed datas. Then use the report (close when a change is made in the main ui).</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto"><br></div><div dir="auto">Jésahel</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Le dim. 10 oct. 2021 à 18:53, Yann Voté <<a href="mailto:ygversil@lilo.org">ygversil@lilo.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
Let's imagine we have a polygon layer named Layer A with tons of <br>
features (tens of thousands), and an attribute layer named Layer B with <br>
even more features. Each polygon in Layer A is associated with one or <br>
more rows in Layer B.<br>
<br>
Now suppose we have created a report with a top section for Layer A <br>
containing a map centered at each polygon, and a subsection for Layer B <br>
showing attributes for each related B row.<br>
<br>
Is there a way to output the report for exactly one polygon in layer A, <br>
or for only some polygons (for example selected polygons) ?<br>
<br>
And is there a way in the subsection to output only some of the related <br>
rows based on some filter expression ?<br>
<br>
I am aware of this feature request<br>
<br>
<a href="https://github.com/qgis/QGIS/issues/44821" rel="noreferrer noreferrer" target="_blank">https://github.com/qgis/QGIS/issues/44821</a><br>
<br>
but is there a way to achieve this with more steps in the UI or with <br>
pyQGIS ?<br>
<br>
Thanks a lot !<br>
<br>
Regards.<br>
<br>
-- <br>
Yann Voté - <a href="mailto:ygversil@lilo.org" target="_blank" rel="noreferrer">ygversil@lilo.org</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer 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 noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div></div></div>