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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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

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.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors