<div dir="ltr">Ah, interesting. Thanks Nyall. This raises the question of whether the variable names related to Atlas need to be renamed (or duplicated) to reflect their applicability to both reports and atlas. Perhaps you've already had discussions?</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 7, 2019 at 3:56 PM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@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">On Tue, 8 Jan 2019 at 07:39, Spencer Gardner <<a href="mailto:spencergardner@gmail.com" target="_blank">spencergardner@gmail.com</a>> wrote:<br>
><br>
> I'm using QGIS3 to create a report. One of my tasks is to display only features in a map layer that match the current iterated feature in the report. To be specific, my report body is set to iterate over a "stations" layer and I have an layer of intersection points where an intersection should only be displayed if it is associated the the current station (via an attribute called "station_name").<br>
><br>
> With Atlas, this could be done by setting the atlas page name to "station_name" from the stations layer and then setting symbology on the intersections layer using<br>
>     "station_name" = @atlas_pagename.<br>
> Is there a comparable solution for a report? I don't see any relevant variables.<br>
<br>
Use @atlas_feature, e.g.<br>
<br>
attribute(@atlas_feature, 'STATION_NAME') = "STATION_NAME"<br>
<br>
This takes the STATION_NAME attribute value from the current<br>
atlas/report feature, and compares it against the station_name<br>
attribute from your "stations" layer. Be careful of the quoting here<br>
-- the first field name, in the attribute function, is a string<br>
literal so uses single quotes. The value you are comparing against is<br>
a field reference, so needs double quotes.<br>
<br>
Nyall<br>
</blockquote></div>