This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Tengo una tabla con identificaciones que significan personas. Hay otra columna booleana. Necesito un recuento de ID que están duplicados en la tabla Y una de las filas con ese ID tiene un valor TRUE en la columna booleana. ¿Alguna sugerencia sobre cómo lograr esto?
Solved! Go to Solution.
Creo que esto podría funcionar:
Dupes =
VAR Summary =
SUMMARIZE (
Table1,
Table1[ID],
"@Count", COUNT ( Table1[ID] ),
"@Bool", TRUE IN VALUES ( Table1[Boolean] )
)
RETURN
COUNTROWS ( FILTER ( Summary, [@Count] > 1 && [@Bool] ) )
Hola @AlexisOlson
¿Qué pasa si esa columna booleana es de otra tabla ?????
He intentado esto, pero la solución anterior no funciona
Da el siguiente error:
Alguien sabe sobre esto por favor ayuda..................
Aquí está mi medida: como el proyecto es la tabla 1 y la acreditación estándar del proyecto es la tabla 2
Recuento de PQ con tabla virtual 2 =
Var TablaA =
RESUMIR COLUMNAS (
Proyecto[ID de proyecto],
'Project Standard Accreditation'[Project Std Acr Accreditation Id ],
'Project Standard Accreditation'[Project Std Acr Standard Id],
"Recuento de duplicados",
CALCULAR (
COUNT ( 'Acreditación estándar del proyecto'[BK_NGPSBI_PROJECT_STANDARD_ACCREDITATION] ),
KEEPFILTERS ( 'Project Standard Accreditation'[Project Std Acr Active] = "Yes" ))
)
Var GreaterThan = FILTER(TableA,[Recuento de duplicados] >=2)
Var _Result = COUNTROWS(GreaterThan)
Devolución
_Resultado
Creo que esto podría funcionar:
Dupes =
VAR Summary =
SUMMARIZE (
Table1,
Table1[ID],
"@Count", COUNT ( Table1[ID] ),
"@Bool", TRUE IN VALUES ( Table1[Boolean] )
)
RETURN
COUNTROWS ( FILTER ( Summary, [@Count] > 1 && [@Bool] ) )
Esto es excelente, ¡gracias!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.