Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi
I am relatively new back to using DAX and come up against my first conundrum. I have two tables, table one being a fact table with a 'Date' column and 'Name' column, then a lookup table with 'Name' 'Start Date' and 'End Date'.
What Im looking for is to create a column on the fact table that both looks up on the lookup table for a row that matches the 'Name' and the 'Date' is between the 'Start Date' and 'End Date' and returns something like match and no match.
Can someone provide some support with this?
Thanks in advance!
Solved! Go to Solution.
CalculatedColumn=IF(COUNTROWS(FILTER(LookupTable,LookupTable[Name]=Table[Name]&&LookupTable[Start Date]<=Table[Date]&&LookupTable[End Date]>=Table[Date])),"Match","No Match")
CalculatedColumn=IF(COUNTROWS(FILTER(LookupTable,LookupTable[Name]=Table[Name]&&LookupTable[Start Date]<=Table[Date]&&LookupTable[End Date]>=Table[Date])),"Match","No Match")