GROUPBY, CURRENTGROUP – DAX Guide

GROUPBY: Creates a summary the input table grouped by the specified columns.
https://dax.guide/groupby/

CURRENTGROUP: Access to the (sub)table representing current group in GroupBy function. Can be used only inside GroupBy function.
https://dax.guide/currentgroup/