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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Countrows filtrando dos tablas

Hola

Tengo dos mesas. Tengo una medida para contar filas en función de la fecha y el estado. Necesito agregar otro filtro a una tabla relacionada (he configurado una relación con un ID). Necesita filtrar valores donde el estado en la tabla 2 también es "Abierto". ¿Cómo agrego otro filtro a esta medida que también aplica el filtro de otra tabla relacionada?

Medida 1 = COUNTROWS(
FILTER('Tabla1', [Fecha de factura] <= hoy()
&& [Estado] = "Abierto"))+0
¡Gracias por la ayuda!
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@CarlsBerg999

Pruébalo

measure1 =
CALCULATE (
    COUNTROWS (
        FILTER ( 'Table1', [Invoice Date] <= TODAY () && [Status] = "Open" )
    ),
    'Table2'[Field] = "something"
)

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@CarlsBerg999

Pruébalo

measure1 =
CALCULATE (
    COUNTROWS (
        FILTER ( 'Table1', [Invoice Date] <= TODAY () && [Status] = "Open" )
    ),
    'Table2'[Field] = "something"
)

¿Cuál es el razonamiento detrás de la línea 'Tabla2'[Campo] = "algo"?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.