These 2 formula work fine in a chart or table. I am now trying to find the minimum and maximum values (red and blue in the table above). I have wrapped Measure 2 with max(aggr()) in various ways and either get a "cannot have nested aggregation" error, no value or the wrong value (2.5, 13, 63, 71).