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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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

Top Kudoed Authors