Reply
1984
Helper I
Helper I
Partially syndicated - Outbound

Multiple lookup

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!

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

Syndicated - Outbound

CalculatedColumn=IF(COUNTROWS(FILTER(LookupTable,LookupTable[Name]=Table[Name]&&LookupTable[Start Date]<=Table[Date]&&LookupTable[End Date]>=Table[Date])),"Match","No Match")

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

Syndicated - Outbound

CalculatedColumn=IF(COUNTROWS(FILTER(LookupTable,LookupTable[Name]=Table[Name]&&LookupTable[Start Date]<=Table[Date]&&LookupTable[End Date]>=Table[Date])),"Match","No Match")

Syndicated - Outbound

Thank you @wdx223_Daniel !

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)