Forum Discussion
Anonymous
2 years agoNot applicable
Return all values appearing in a given column
HI, I need to create a custom column that shows all the values in the "Origem" column according to the value in the "Produto" column, for example: Produto Origem Custom Colunm 1 A A,...
Greg_Deckler
Community Champion
2 years agoAnonymous Try:
Column =
VAR __Produto = [Produto]
VAR __Table = FILTER( 'Table', [Produto] = __Produto )
VAR __Return = CONCATENATEX( __Table, [Origem], "," )
RETURN
__Return
Measure =
VAR __Produto = MAX([Produto])
VAR __Table = FILTER( ALLSELECTED('Table'), [Produto] = __Produto )
VAR __Return = CONCATENATEX( __Table, [Origem], "," )
RETURN
__Return
- Anonymous2 years agoNot applicable
Greg_Deckler this is DAX or M, I try to apply this codes in M and doesn't work, do you can help me?
- Greg_Deckler2 years ago
Community Champion
Anonymous Sorry, that was DAX. Wasn't paying attention.