You can either use CALCULATE or FILTER Functions. You can use RELATED to bring in columns from other tables.