Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Is there a way to write a calculation that will find the related time period and return a cost.
Table 1. Contract (Lookup Table)
A. Has Contract Number
B. Has Location
Table 2. Sales Order. (Lookup Table)
A. Has Contract Number (Has a primary join from tables 1 to 2 - "one-to-many" relationship)
B. Has Sales Order Date
C. Has Sales Order Number
Table 3. Transactions Table (Fact Table)
A. Has Invoice Number (Has a primary join from tables 2 to 3 - "Currently has a secondary "many-to-many" relationship)
B. Has a Transaction Date
B. Has a cost
C. Has a Location
Table 4. Locations (Lookup Table)
A. Has list of Locations (Has a primary join from tables 4 to 3 - "one-to-many" relationship &
This also has a secondary join from table 4 to 1 - "one-to-many" relationship)
The costs are in Table 3. These costs change periodically and change between location.
I wrote a measure:
Cost per site =
Any thoughts? Thank you.
Hi @Anonymous ,
You may check the topic about How-to-Get-Your-Question-Answered-Quickly .
Best Regards,
Jay
Hey @Anonymous ,
the description of your data model is very precise, thank you for that. Please consider creating a pbix that contains sample data but still reflects your data model, upload the pbix to onedrive or dropbox and share the link. If you are using Excel to create the sample data, share the xlsx as well.
At least I need sample data to follow along the description.
Regards,
Tom
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!