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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tebtim19
Helper IV
Helper IV

medida de filtro

Hago la medida del conteo de todo el personal que forma el estado de la mesa.

pero quiero filtrar la medida que hice, filtrando al personal femenino sólo

1 ACCEPTED SOLUTION

@tebtim19 ,

Agregue una condición más en su DAX:

Recuento femenino: CALCULATE(COUNT(StaffTable[EmpCode]),StaffTable[Gender]-"Female",StaffTable[Status]-"Staff")
Capture.PNG
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

5 REPLIES 5
Tahreem24
Super User
Super User

@tebtim19 ,

Pruebe esta medida DAX:

Recuento femenino: CALCULATE(COUNT(StaffTable[EmpCode]),StaffTable[Gender]-"Female")
Adjuntar captura de pantalla para su referencia.
Capture.PNG
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hola gracias, pero no funcionó ya que tengo una tabla de estatus

Este es el ejemplo

Nombre

Estado

Género

Ana

Personal

Mujer

Ben

Personal

Mujer

Leo

Personal

masculino

Mj

Contratista

masculino

Jackson

Proveedor

Mujer

Hice una medida para obtener el total de personal que obtuve 3 en total

Pero ahora voy a conseguir el total de personal femal que supongo que obtengo es 2

@tebtim19 ,

Agregue una condición más en su DAX:

Recuento femenino: CALCULATE(COUNT(StaffTable[EmpCode]),StaffTable[Gender]-"Female",StaffTable[Status]-"Staff")
Capture.PNG
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hola gracias tengo la respuesta correcta. También me hace fácil obtener porcentaje por género

Pero sólo una pregunta rápida en mi tarjeta el porcentaje muestra 0.27%. ¿Hay alguna manera de que se muestre sin decimal

Quiero que la salida sea del 27%

Anand24
Super User
Super User

Hola @tebtim19 ,

Puede utilizar a continuación DAX para su medida calculada:

Medida: CALCULATE(COUNT('Status'[Staff]),FILTER(STAFF,MAX(Staff[Gender])-"Female")
Será muy útil si puede compartir el dax que ha utilizado y lo que es la estructura de la tabla.

Dale un pulgar hacia arriba si este post te ayudó de alguna manera y marca este post como solución si resolvió tu consulta !!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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