Is it possible to set an expression to determine if a legend item shows up based on an atlas name, variable or field?
I am generating an atlas that cycles through a series of iterations and shows different layers on each page. I have 4 different parameters and 15 different levels. It takes a bit of tinkering to format the legend entry to show up right, and the scales are constant for each parameter. I would like to have 4 legend entries that are formatted correctly, then select which of the 4 legend items shows up based on the Atlas features. If I just had 1 parameter, I could format the legend and keep it constant. I could also go through and add all 60 layers, format them and click the "only show features inside current atlas feature" button, but am hoping to avoid having to format each of the layers.
Is there a way to say show this legend item if [%"Parameter"%] = "XXX" and then have another legend item that shows up if [%"Parameter"%] = "YYY"? ([%"Parameter"%] is a atlas variable that is correctly printing the parameter in the current page.