dax table return all rows based on one grouping code example
Example: group by in power bi
GROUPBY (<table>, [<groupBy_columnName1>], [<name>, <expression>]… )
GROUPBY (<table>, [<groupBy_columnName1>], [<name>, <expression>]… )