0

What could be an expression that displays a symbol in the print preview legend only if there are values in the attribute table.

Example:

A point layer has no entries/points. A surface layer has two geometries. In the legend of the print layout, all layers are now displayed by default. Now an expression is to be inserted so that only layers that also have attributes appear in the legend.

2
  • 3
    Have you made yourself familiar with the settings available within the legend item?
    – Erik
    Aug 15, 2022 at 9:44
  • @MaFo : Has the answer by JGH solved your problem? If it has, can you tick the answer?
    – Cowirrie
    Aug 16, 2022 at 3:01

1 Answer 1

4

In the legend options, you can opt to show only visible items

enter image description here

Your Answer

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

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