Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
zzzsou
Frequent Visitor

How to use related function from other table's date condition

Hello,

 

I would like to use related function from other table's date condition.

Here is my data set

 

table 1 (fact table)

ProductYear_monthProduct_version
A201901 
A202212 
A202303 
B202303 
..  

 

table 2 (lookup table)

ProductProduct_versionStartDateEndDate
Arevsion1200901202005
Arevsion2202006202212
Arevsion3202301999999
Brevsion1201701202203
............

 

Result what I would like to get is below

 

table 1 (fact table)

ProductYear_monthProduct_version
A201901revsion1
A202211revsion2
A202303revsion3
B202303revsion1
..  

 

Could you kindly help me this problem?

1 REPLY 1
bhelou
Responsive Resident
Responsive Resident

Dear , 

to Use related function the source table should have a unique identifier ( like the product # should not be duplicated ) in your case if the year_month is unique , try to concatitane it in the source table and the table fact 
and your relationship should be one to many . 

Regards ,


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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