Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
mmaleta85
Frequent Visitor

Filtering a DAX function based on a relationship

Suppose I have the following tables

 

Hosts:

Host IdHost
1001Abigail Morris
1002Betty James
1003Karla Carraso
1004Lynn Williams


Players:

Player IdPlayer
2001Aaron Chambliss
2002Michael Stewart
2003Steve Jazz
2004Wallace Stanley


Host-Player History:

Host IdPlayer IdStart DateEnd Date
100120011/1/202312/31/2023
100120021/1/20234/30/2023
100220025/1/202312/31/2023
100220032/6/20236/14/2023
100320036/15/202312/31/2023
100320043/15/20238/12/2023
100420048/13/202312/31/2023


Player Activity:

Player IdDateRevenue
20015/6/2023$1000
20023/15/2023$300
20027/20/2023$1500
20034/11/2023$2000
20038/9/2023$5000
20046/20/2023$7500
200411/29/2023$350


I have relationships between the Hosts, Players, and Host-Player History tables based on their respective Ids. I also have a relationship between Host-Player History and Player Activity based on Player Ids. I want to use these relationships to determine how much revenue each host generated while players were hosted to them, ie, when the date played is between the begin and end date for each host-player row, so that I can generate this type of report:

HostTotal Revenue
Abigail Morris$1300
Betty James$3500
Karla Carrasco$12500
Lynn Williams$350


What type of calculations and filters would I need to accomplish this?

0 REPLIES 0

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.