Hi can we make custom aggregrated measures nased on categories ?

for example annual average salary

for men and women separate in data pane?