Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Syndicate_Admin
Administrator
Administrator

Recuento de duplicados con otro parámetro

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?

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

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] ) )

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

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:

RanjeetK_0-1667276048447.png

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

Syndicate_Admin
Administrator
Administrator

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!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.