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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pparke
Frequent Visitor

¡Ayuda! No se puede calcular el porcentaje del total general de filas dentro de una columna

Inexpereinced power bi usuario aquí.

Tengo una columna llamada "licencia relacionada con la pandemia". El valor de 1 se refiere a la solicitud de licencia relacionada con la pandemia, de lo contrario no hay ningún valor. Quiero mostrar el porcentaje de licencia relacionada con la pandemia, es decir, 44 filas con 1, filas totales de 9840. El porcentaje debe ser .44%.

Cuando selecciono mostrar el valor como porcentaje del total general, permanece al 100%.

¿Alguna idea?

Tia

3 REPLIES 3
amitchandak
Super User
Super User

@pparke ,

Trate como

divide(calculate(countrows(filter(Table,table[pandemic related leave]-1))),calculate(countrows(Table),all(Table)))

Marque esto como %.

Data Format New Rib.png

He intentado esto y obtener el mensaje de error a continuación:

La sintaxis de 'Sí' es incorrecta. (DAX(divide(calculate(countrows(filter(Pandemic Yes,Pandemic Yes[Pandemic Yes]-1))),calculate(countrows(Pandemic Yes),all(Pandemic Yes))))).

Hola @pparke ,

¿Puede compartir algunos datos de ejemplo? Es difícil escribir fórmulas sin datos de muestra.

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.