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
jack555
Advocate I
Advocate I

Get Related column in many to many relationship

I have two tables with many to many relationship. need to pull the first followup entered date from second table to first table as column (not as measure) since i would be using this column for some other purposes. I want the results as in the third table.

 

Please help me with the DAX syntax. I am beginner in DAX. Thanks in advance.

 

ISSUES 
ISSUE_IDFeedback_ID
11111
21111
31111
42222
52222
63333
74444
84444
94444
104444

 

Followup Table   
Followup_IDFeedback_IDFollowup_TypeFollowup_Entered_DT
1011111Sign-Off20/10/2016 0:00
1021111Reply Received21/10/2016 0:00
1031111Reply Received22/10/2016 0:00
1041111Referral Sent23/10/2016 0:00
1052222Work done on file07/12/2016 0:00
1062222Sign-Off09/12/2016 0:00
1073333Work done on file06/03/2017 0:00
1083333Work done on file07/03/2017 0:00
1093333Sign-Off08/03/2017 0:00
1104444Work done on file25/04/2017 0:00
1114444Work done on file26/04/2017 0:00
1124444Work done on file27/04/2017 0:00

 

What I What  
ISSUE_IDFeedback_IDFirst_Followup_Entered_DT
1111120/10/2016 0:00
2111120/10/2016 0:00
3111120/10/2016 0:00
4222207/12/2016 0:00
5222207/12/2016 0:00
6333306/03/2017 0:00
7444425/04/2017 0:00
8444425/04/2017 0:00
9444425/04/2017 0:00
10444425/04/2017 0:00
1 ACCEPTED SOLUTION
Barthel
Solution Sage
Solution Sage

Hey @jack555,

You could create a calculated column that retrieves the first value using the MIN function. Put a CALCULATE function around this so that context transition is activated: this converts the row context into a filter context.

First_Followup_Entered_DT = 
CALCULATE ( MIN ( 'Followup Table'[Followup_Entered_DT] ) )

View solution in original post

2 REPLIES 2
jack555
Advocate I
Advocate I

@Barthel you saved the day. it was so simple, I complicated my self. Thank you very much.

Barthel
Solution Sage
Solution Sage

Hey @jack555,

You could create a calculated column that retrieves the first value using the MIN function. Put a CALCULATE function around this so that context transition is activated: this converts the row context into a filter context.

First_Followup_Entered_DT = 
CALCULATE ( MIN ( 'Followup Table'[Followup_Entered_DT] ) )

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.