Forum Discussion
Anonymous
6 years agoNot applicable
CROSSJOIN by group
hi all, Hopefully you can help me. I can't figure it out despite googling a lot. I don't think it's very tricky. Basically, what I want to achieve is a kind of grouped crossjoin between two identic...
- Anonymous6 years ago
// Assumption: // No relationship between the tables. GENERATE( 'Table A', var __stop = 'Table A'[Stop] return SELECTCOLUMNS( CALCULATETABLE( VALUES( 'Table B'[Stations] ), 'Table B'[Stop] = __stop ), "B Stations", 'Table B'[Stations] ) )
Anonymous
6 years agoNot applicable
This should be dead easy with GENERATE or GENERATEX.
Best
D
Best
D
Anonymous
6 years agoNot applicable
// Assumption:
// No relationship between the tables.
GENERATE(
'Table A',
var __stop = 'Table A'[Stop]
return
SELECTCOLUMNS(
CALCULATETABLE(
VALUES( 'Table B'[Stations] ),
'Table B'[Stop] = __stop
),
"B Stations",
'Table B'[Stations]
)
)- Anonymous6 years agoNot applicable
thank you so muchAnonymous !
this seems to produce the table I was looking for! I don't think I would have come up with that solution, so "dead simple" maybe for you 😆thank you community!