Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hola tengo una columna de datos Género
Necesito contar hombres y mujeres y el porcentaje promedio será del 50%
Si desea calcular el porcentaje de hombres y mujeres en el total, puede probar este código.
Percentage =
VAR _Total =
CALCULATE ( COUNT ( 'Table'[User] ), ALL ( 'Table' ) )
VAR _Each_Gender =
CALCULATE ( COUNT ( 'Table'[User] ) )
RETURN
DIVIDE ( _Each_Gender, _Total )
Mi muestra:
El resultado es el siguiente.
Saludos
Rico Zhou
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Medida = CountRows(tabla)
A continuación, coloque un objeto visual con el género y la medida como columna. Se puede agregar dos veces y usar el segundo como % del total.
Si necesita dividirlo en registros separados ...
Medida Masculino =
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.