Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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)