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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Recuento sobre el recuento total en una tabla

Hola buen día,

¿Alguien puede ayudarme a llegar al resultado que requeríamos, no estoy seguro de si esto es posible? Tengo una tabla y quiero contar el total de E3 sobre el número total de Nº de estado. por Comercio, por Área.

Mesa

AllanBerces_0-1750844647512.png

SALIDA DESEADA

AllanBerces_1-1750844830061.png

Gracias

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@AllanBerces

Elena_Kalina_0-1750846770854.png

E3 Ratio Final = 
VAR e3Count = CALCULATE(COUNTROWS(StatusData), StatusData[Status] = "E3")
VAR totalCount = COUNTROWS(StatusData)
RETURN
IF(
    ISBLANK(totalCount) || totalCount = 0,
    BLANK(),
    VAR displayNumerator = IF(ISBLANK(e3Count), 0, e3Count)
    RETURN
    displayNumerator & "/" & totalCount
)

Hola @Elena_Kalina @Greg_Deckler muchas gracias por el trabajo de respuesta que necesito.

Syndicate_Admin
Administrator
Administrator

@AllanBerces Si hubieras publicado esos datos como texto, en realidad habría podido probar esto, pero aquí va de todos modos:

Measure =
  VAR __E3 = COUNTROWS( FILTER( 'Table', [Status] = "E3" ) )
  VAR __Total = COUNTROWS( 'Table' )
  VAR __Result = __E3 & "/" & __Total // or DIVIDE( __E3, __Total, 0 )
RETURN
  __Result

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.

June 2025 community update carousel

Fabric Community Update - June 2025

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