Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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")