This technique will work with any of DAX's iterative aggregation functions, X functions, including AVERAGEX, COUNTAX, COUNTX, GEOMEANX, MAXX, MEDIANX, MINX, PRODUCTX, STDEVX.P, STDEVX.S, SUMX, VARX.P, and VARX.S.
It is also important to note that, when aggregating multiple columns, they do not have to come from the same table but can come from different tables. Also, because this recipe does not override any row or filter contexts, this recipe will perform aggregations under any filtering conditions, such as the use of slicers and cross filtering.