How do you get the lowest variable associated?

Hi community :wave:

I’m trying to retrieve and display the lowest variable (even if it is on a separate file) associated with my layer, but I have to admit that my development skills are limited… which is why I’m asking to you.

This is how I imagine the final result (two possible options):

How would you do that?