Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I need to get the field "Name" from "Table1" in a calculated column in "Table2", like:
Table1:
Name | Date ABC | 5-jan-2017 ABC | 7-jan-2017 DEF | 8-may-2018 DEF | 10-jun-2018
And Table2:
Date | CalcColumn 6-Jan-2017 | ABC 25-may-2018 | DEF
The logic is the following: If Date in Table2 is within the minimum and maximum dates of Table1then get the name in Table1.
Solved! Go to Solution.
Hi @webportal
That's weird. Have a look at this file where I've run a quick test with the sample data you provided. Maybe there's something different from what you are doing?
Hi @webportal
Try this for your calculated column in Table2:
NewColumn = CONCATENATEX ( FILTER ( ALL ( Table1[Name] ); CALCULATE ( MIN ( Table1[Date] ) ) <= Table2[Date] && CALCULATE ( MAX ( Table1[Date] ) ) >= Table2[Date] ); Table1[Name]; ", " )
This will also work if there is more than one name in Table1 meeting the requirement. If so, all names will be shown separated by commas.
Hello @AlB
The expression makes sense, but I'm getting an empty column, have no idea why.
Hi @webportal
That's weird. Have a look at this file where I've run a quick test with the sample data you provided. Maybe there's something different from what you are doing?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
42 | |
30 | |
27 | |
27 |