Join 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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Say I have the following tables:
Project
PROJ_ID |
123456 |
Samples
PROJ_ID | SAMP_ID | VAL | ||
123456 | 123456 | A | ||
123456 | 123457 | B | ||
123456 | 123458 | C |
Is it possible to combine the Samples[VAL] values based on the PROJ_ID as a calculated column in the Project table?
Edit: I know I can do this via Power Query, but in this instance, it has to be done via DAX.
Solved! Go to Solution.
Hi @olimilo
You can create a new table with the following dax code, but I don't know if it is what you need:
naturalinnerjoin =
VAR
LeftTable =
SELECTCOLUMNS(
'Sample',
"PROJ_ID", 'Sample'[PROJ_ID] & "",
"VAL", 'Sample'[VAL]
)
VAR
RightTable =
SELECTCOLUMNS(
'Project',
"PROJ_ID", 'Project'[PROJ_ID1] & ""
)
RETURN
NATURALINNERJOIN(LeftTable, RightTable)
Concat = CONCATENATEX( RELATEDTABLE('Sample'), 'Sample'[VAL], ", " )
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hi @olimilo
You can create a new table with the following dax code, but I don't know if it is what you need:
naturalinnerjoin =
VAR
LeftTable =
SELECTCOLUMNS(
'Sample',
"PROJ_ID", 'Sample'[PROJ_ID] & "",
"VAL", 'Sample'[VAL]
)
VAR
RightTable =
SELECTCOLUMNS(
'Project',
"PROJ_ID", 'Project'[PROJ_ID1] & ""
)
RETURN
NATURALINNERJOIN(LeftTable, RightTable)