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!View all the Fabric Data Days sessions on demand. View schedule
Oi, eu tenho uma tabela que segue mais ou menos o seguinte exemplo:
| Referência | SKU | Cor | Tam |
| C24B023 | 123456 | Azul | P |
| 654321 | Azul | M | |
| 789101 | Verde | M | |
| 111098 | Vermelho | M | |
| V43G560 | 138743 | Roxo | G |
| 382984 | Branco | G |
Mas com uma infinidade de Referências
E preciso que seja feita uma coluna a mais que una todas as cores. Esperado:
| Referência | Cores | Tamanhos |
| C24B023 | Azul, Verde, Vermelho | P, M |
| V43G560 | Roxo, Preto | G |
A coluna de produtos pode desaparecer ou ter com apenas uma linha preenchida nas colunas "Cores" e "Tamanhos" para cada referência (por exemplo, a linha que começa em ordem alfabética)
Sei que na linguagem SQL poderia utilizar a função LISTAGG, mas não consegui encontrar nada semelhante a isso no Bi, seja no Power Query, uma nova coluna, tabela ou medida
Solved! Go to Solution.
Hi @acbi ,
According to your description, you can use the CONCATENATEX function. Refer to the following result.
Tab_ =
SUMMARIZE (
'Table',
'Table'[Referência],
"Cors", CALCULATE ( CONCATENATEX ( 'Table', 'Table'[Cor] ), ALL ( 'Table' ) ),
"Tam", CALCULATE ( CONCATENATEX ( 'Table', 'Table'[Tam] ), ALL ( 'Table' ) )
)
If the problem is still not resolved, please point it out. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @acbi ,
According to your description, you can use the CONCATENATEX function. Refer to the following result.
Tab_ =
SUMMARIZE (
'Table',
'Table'[Referência],
"Cors", CALCULATE ( CONCATENATEX ( 'Table', 'Table'[Cor] ), ALL ( 'Table' ) ),
"Tam", CALCULATE ( CONCATENATEX ( 'Table', 'Table'[Tam] ), ALL ( 'Table' ) )
)
If the problem is still not resolved, please point it out. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!