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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

¿Cómo crear una medida que muestre % filtrado por TOP 10 del Total?

Hola amigos,


Tengo una hoja de cálculo que tiene el número total de cancelaciones como 293 y tengo una tabla que tiene las 10 ciudades principales con cancelaciones y el total de las 10 principales es 257. Necesito crear una tarjeta que muestre el 87%.

La tabla tiene un filtro TOPN. Traté de crear una medida con dos variables, una contando el número total de filas (293) y otra variable con el topN del mismo recuento (como la tabla).

No funcionó. ¿Pueden ayudarme?

raphazzz_1-1675903320411.png

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@raphazzz , Suponiendo que cancels no es una medida TOPN create topn meausre

M1= SUMX(keepfilters(topn(10, ALL('Table'[Customer City]) , [Cancels], desc)), [Cancels])

M1 % = divide(M1= SUMX(keepfilters(topn(10, ALL('Table'[Customer City]) , [Cancels], desc)), [Cancels]), calculate([Cancels], allselected()) )

o

M1 % = divide(M1= SUMX(keepfilters(topn(10, ALL('Table'[Customer City]) , [Cancels], desc)), [Cancels]), calculate([Cancels], all()) )

¡Gracias por tu ayuda! Ajusté un poco la segunda fórmula y está funcionando.

raphazzz_0-1675911042523.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.