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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hola a todos,
Soy nuevo en PBI y necesité ayuda. Tengo un escenario donde necesito que las filas se fusionen / agrupan:
La siguiente tabla es lo que tengo en mis datos:
| Título | Tipo |
A | Ambos |
| A | Sólo Parte1 |
| A | Sólo Parte2 |
| A | En |
| B | Sólo Parte1 |
| B | Sólo Parte2 |
| B | En |
| C | Sólo Parte1 |
| C | En |
| D | Sólo Parte2 |
| D | En |
| E | En |
y la siguiente tabla es lo que estoy buscando para obtener :
| Título | Tipo |
| A | Ambos |
| B | Ambos |
| C | Sólo Parte1 |
| D | Sólo Parte2 |
| E | En |
Explicación : Ambos > Parte1 Y Parte2 > Parte1 > Parte 2 > NA.
(En el caso del Título B viene como Ambos porque tiene dos partes separadas1 y Parte2)
Si alguien pudiera por favor ayudarme sería de gran ayuda.
¡Gracias!
hola @newbiepbix
Sólo tiene que utilizar esta lógica para crear una nueva tabla
New Table =
SUMMARIZE (
'Table',
'Table'[Title],
"Type", IF (
"Both" IN VALUES ( 'Table'[Type] ),
"Both",
IF (
"Part1 only" IN VALUES ( 'Table'[Type] )
&& "Part2 only" IN VALUES ( 'Table'[Type] ),
"Both",
IF (
"Part1 only" IN VALUES ( 'Table'[Type] ),
"Part1 only",
IF ( "Part2 only" IN VALUES ( 'Table'[Type] ), "Part2 only", "NA" )
)
)
)
)
Resultado:
y aquí está el archivo pbix de muestra, por favor pruébelo.
saludos
Lin
¡¡¡¡Muchas gracias!!!! Esto funcionó como un encanto.
@newbiepbix, cree una nueva medida como esta e intente
nueva medida :Switch(
countx(filter(table,table[Type]-"Both"),table[Title])>-1,"Both",
countx(filter(table,table[Type]-"Part1 AND Part2"),table[Title])>-1,"Part1 AND Part2",
countx(filter(table,table[Type]-"Part1"),table[Title])>-1,"Part1",
countx(filter(table,table[Type]"Part 2"),table[Title])>-1,"Part 2",
"NA"
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.