0

Is it possible to include in the QGIS report composer a fields group section with tables that are related on a 1 to many relationship? For example a point layer "HOUSES", with a KEY that relates to a table "FAM" that has a list of family members data (name, sex, age , etc). But I can´t get it to work in qgis report composer.

UPDATE:

enter image description here

1
  • What did u do so far ? Where is the "blocking point" ?
    – Snaileater
    Commented Aug 19, 2019 at 9:16

1 Answer 1

2

You can add an Attribute table and use a filter expression to get to corresponding data. If you have an Attlas/Group Layer with the column "key", and you want to get the table fam that also has the column "key", the item properties of the attribute table would look like that:

enter image description here

3
  • Hi @nepluisse I have used your approach but no success, my tables look like the file in attachement Commented Aug 19, 2019 at 16:18
  • 2
    @CarlosRivas Your expression has the @atlas_featureid variable where it should have the @atlas_feature variable.
    – csk
    Commented Aug 19, 2019 at 17:10
  • Solve! Thank you very much Commented Aug 19, 2019 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.