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] ) )
vivran22
Community Champion
6 years agoHello Anonymous,
Please follow the link below:
https://community.powerbi.com/t5/Desktop/Help-a-noobie-column-combination/m-p/946976#M453788
I am hopeful this is what you are looking for.
Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
- Anonymous6 years agoNot applicable
Thank you for your answer, vivran22
Unfortunately, this seems also to produce a full CROSSJOIN.
I'd need a CROSSJOIN grouped by column "Stations" (as shown in the example result table).
This should be possible with DAX, doesn't seem to hard! I just can't get my head around it.
- Anonymous6 years agoNot applicableUse lookupvalue function.
Thanks
Pravin - Anonymous6 years agoNot applicableThis should be dead easy with GENERATE or GENERATEX.
Best
D- Anonymous6 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] ) )