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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
StuartSmith
Power Participant
Power Participant

Valor porcentual incorrecto

Tengo una tabla que contiene 67 filas...

Count_Total_Row_Measure - COUNTROWS(Servicios)

Contiene una columna llamada "VoWiFi" que contiene 22 valores "Sí"...
Count_Rows_Where_No_Measure de cálculo (COUNTROWS(Servicios),SEARCH("Yes", Services[VoWIFI],,0))
A continuación, quiero obtener el porcentaje de filas que contienen valores "Sí" del número de filas.
VoWiFi % YESS ? DIVIDE(CALCULATE(COUNTROWS(Services),SEARCH("Yes", Services[VoWIFI],,0)), CALCULATE ( COUNT ( 'Services'[VoWIFI] ), ALLSELECTED ( 'Services'[VoWIFI])))
Pero en lugar de dar "32.83%", la salida es "0.79". ¿Qué estoy haciendo mal
2020-09-17_12-14-51.jpg
1 ACCEPTED SOLUTION

@StuartSmith, creé

Measure = DIVIDE([Count_Rows_Where_No_Measure],[Count_Total_Row_Measure])

Marcado como % tipo y parece dar el número que desea

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@StuartSmith , el primero hecho no tiene todos seleccionados

entonces usted debe tratar de

VoWiFi % YESS ? DIVIDE(CALCULATE(COUNTROWS(Services),SEARCH("Yes", Services[VoWIFI],,0)>0), CALCULATE ( COUNT ( 'Services'[VoWIFI] )))

O

VoWiFi % YESS ? DIVIDE(CALCULATE(COUNTROWS(Services),SEARCH("Yes", Services[VoWIFI],,0)>0), CALCULATE ( COUNT ( 'Services'[VoWIFI] ), ALL( 'Services'[VoWIFI])))

VoWiFi % YESS ? DIVIDE(CALCULATE(COUNTROWS(Services),SEARCH("Yes", Services[VoWIFI],,0)>0), CALCULATE ( COUNT ( 'Services'[VoWIFI] ), ALLSELECTED ( 'Services'[VoWIFI])))

¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O una muestra de pbix después de eliminar datos confidenciales.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Ninguno de los siguientes cambió el resultado.

A continuación encontrará un archivo de ejemplo...

https://www.dropbox.com/s/kwhnnio9q2lceu8/Sample.pbix?dl=0

@StuartSmith, creé

Measure = DIVIDE([Count_Rows_Where_No_Measure],[Count_Total_Row_Measure])

Marcado como % tipo y parece dar el número que desea

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.