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! Learn more
Solved! Go to Solution.
I created a column in the Promo Table that had all dates and the corresponding promo (promodates) - this then has a field with the promo codes for each date. Related the workdate with the promodate with a many to many relationship filtering both ways and got the answer I was looking for
Hi @Anonymous
It would help if you provide some sample data and an example. Try creating a calculated column in your fist table:
RangeCol =
CALCULATE (
DISTINCT ( Table2[Promotion Code] ),
FILTER (
Table2,
Table2[StartDate] <= Table1[Ship date] && Table2[EndDate] > Table1[Ship date]
)
)
Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.
Cheers ![]()
The code is assuming no relationships
Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data). You have to share the URL to the file hosted elsewhere: Dropbox, Onedrive... or just upload the file to a site like tinyupload.com (no sign-up required).
So here are the two tables. I need to know which PromoIDkey in the second table where the date from the first table (workdate) correlates to in the second table where it falls between the ScheduledStartDateID and the ScheduledEndDateID. I hope this helps.
tables
I created a column in the Promo Table that had all dates and the corresponding promo (promodates) - this then has a field with the promo codes for each date. Related the workdate with the promodate with a many to many relationship filtering both ways and got the answer I was looking for
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.