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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
iiomarioii
Helper II
Helper II

2 Relations between Date table, Master data and ProductionVolume Table

Hi guys, 

 

I created this example to show you my problem: 

 

I have 3 tables:

 

1. Date table 

 

2. Master data 

Products      Producer      ProductionStart      ProductionEnd      
Item 1      Producer A      01.01.2022      01.05.2022      
Item 1      Producer B      02.05.2022      01.01.2099      
Item 2      Producer C      01.01.2022      01.01.2099      
Item 3      Producer C      01.01.2022      01.01.2099      

 

3. Production data

 

Production      Date      ProductionAmount      
Item 1      01.01.2022      50      
Item 1      01.03.2022      100      
Item 1      01.06.2022      100      

 

 

 

 

 

So given that Item 1 has 2 different producers depending on the production Date I would like to get the following result: 

Product      Date      Production Amount      Producer      
Item 101.01.2022      50      Producer A      
Item 1 01.03.2022       100      Producer A      
Item 1 01.06.2022      100      Producer B      

 

There is Relation between Date - Production Data and a relation between Production Data  and Master Data 

 

 

Would appreciate any help!! Thank you 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@iiomarioii , You can create a new column in the Production

 

maxx(filter(Master, Production [Product]  =master([Product]) && Production[Date] >= master[ProductionStart] &&

Production[Date] <= master[ProductionEnd]) , Master[Producer])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@iiomarioii , You can create a new column in the Production

 

maxx(filter(Master, Production [Product]  =master([Product]) && Production[Date] >= master[ProductionStart] &&

Production[Date] <= master[ProductionEnd]) , Master[Producer])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors