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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Valor Total general

Hola, chicos

Estoy teniendo un pequeño problema de cálculo para el porcentaje sobre los valores totales generales.

Tengo una tabla donde una "categoría" está en blanco como se puede ver en la tabla de la izquierda. He creado una medida que debería darme un porcentaje sobre el valor total. El problema es que una vez que estoy eliminando el espacio en blanco de la categoría mediante el uso del filtro, sigue mostrando el mismo resultado. Esperaba el resultado para el valor1 = 12/42 = 28,57% en la tabla de la derecha, pero todavía está haciendo 12/52 = 23,08%. Capture.PNG

mi medida es esta :-

medida = DIVIDIR(SUMA(Hoja1[Valor]),CALCULAR(SUMA(Hoja1[Valor]),TODO(Hoja1[Categoría])))
No soy capaz de encontrar dónde estoy cometiendo un error.
¿Puede ayudarme a encontrar la solución, por favor?
Gracias de antemano.
manténgase a salvo.
2 ACCEPTED SOLUTIONS
Syndicate_Admin
Administrator
Administrator

@TaroGulati , Pruebe allselected en lugar de all y verifique

measure = DIVIDE(SUM(Sheet1[Value]),CALCULATE(SUM(Sheet1[Value]),allselected (Sheet1[Category])))

View solution in original post

Sí, ahora está funcionando. gracias.

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@TaroGulati , Pruebe allselected en lugar de all y verifique

measure = DIVIDE(SUM(Sheet1[Value]),CALCULATE(SUM(Sheet1[Value]),allselected (Sheet1[Category])))

Sí, ahora está funcionando. gracias.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors
Top Kudoed Authors