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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

FILTROS VALORES ladrillo resultado en blanco

Hola a todos

La siguiente medida de DAX se vuelve a poner en blanco cuando la agregué a una visualización de tabla.

Leaver2 = CALCULATE(COUNTROWS(Person),FILTER(VALUES(Person[EmploymentStatus]),Person[EmploymentStauts]="Inactivo"))

He creado baccicamente una columna de cusom llamada EmploymentStatus que usa una declaración if que dice en la Termiantion Daste es nula, entonces el valor debería ser "Activo" de lo contrario "Inactivo" y he incluido esto en mi medida anterior para obtener un recuento de egresados cada mes.

¿Alguien puede ver lo que he hecho que no trae ningún valor en absoluto?

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@marcelsmaglhaes

Gracias por ayudarme con esto, funciona bien.

Hola @GJ217

¡Fue un placer ayudar!

Saludos
Marcel

Syndicate_Admin
Administrator
Administrator

@GJ217 ,

Pruebe esta medida

Leaver2 =
COUNTROWS ( FILTER ( Person, Person[EmploymentStauts] = "Inactive" ) )

Si desea remove filtros de contexto de columnas y filas en la consulta actual, agregue all()/ ALLSELECTED().

Leaver2 =
COUNTROWS (
    FILTER ( ALLSELECTED ( Person ), Person[EmploymentStauts] = "Inactive" )
)

Saludos

ShundaSteph

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.