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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.