How do I perform further queries on a filtered range excluding hidden cells

If I create a chart from a range of cells in Libre Calc, and then apply a filter to the range, the chart automatically updates with those cell ranges that has not been hidden by the filter.

However, I am trying to achieve this using ( Maxa() ) or something simular, which does not produce the results I am looking for.

Maxa() still takes into account the cells that are hidden due to applied filter.

So how am I able to filter a multiple column range, then find out what cell in a particular row has the maximum value ?.

Thanks in advance

Hi

=SUBTOTAL(4; A2:A20)

Gives the maximum value of the range A2:A20 taking into account filters (adapt ; according to Tools Options Calc Formula Separators Function

Regards

Perfect !

Thank you so much, pierre-yves samyn.