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
Anonymous
Not applicable

Adding a date column (that has multiple values) from another table

Hello, 

Date table is in top left of image below.   

 

In the Flu_RMAs table there is a field called  "Last Ship Date".     It is not connected to the date table in any way  (there is another more relevant date field connected to the date table).  

 

However, I have a situation where I need to use the Last Ship Date field, but I actually need to use with respect to the table next to it called RMA Line Items.   (essentially the Flu_RMAs table contains header data....and the RMA Line items contains line item data).   

 

There is no direct relationship between those two table, but both are connected to a dimension table called RMA ID.   (an RMA is essentially an order ID number place for returned merchandised).   

 

I had tried using the LOOKUPVALUE, but because the Last Ship Date field does not contain unique values, it did not work.   

 

Any ideas how I can get the Last Ship Date field in my RMA Line Items table?  

 

ship date.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

3 REPLIES 3
Anonymous
Not applicable

Create an inactive relationship Flu_RMA's "Last Ship Date" and your date table, then you can use the function 

USERELATIONSHIP 
 
 
 
I have a similar issue, 
Karlos_0-1595785798297.png
Sum of Workshops = CALCULATE(COUNT('1:1s'[WorkshopStatus]),USERELATIONSHIP('Date'[Date],'1:1s'[WordshopDate])) works a treat for me. 
Anonymous
Not applicable

I ended up using this solution (the Way 2 version) and it worked perfectly.  

 

https://community.powerbi.com/t5/Desktop/Using-DATEDIFF-Between-2-Tables-with-an-Inactive-Relationsh...

 

 

Anonymous
Not applicable

Good to hear man, Please ensure you mark the solution as accepted. 

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.