Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hola a todos
Soy nuevo en Power Bi y tengo un problema con un cálculo. Estoy tratando de calcular la parte de las ventas que tiene un artículo. Esto se hace dividiendo el número de artículos vendidos por las ventas totales de un período seleccionado. Usando la siguiente tabla de ejemplo:
Ventas totales = 14.700 (2500+9000+1500+1700)
Cuota de ventas (refresco) = Cantidad / Ventas totales
= 100 / 14700 = 0,006802721
| Descripción | Qty | Ventas totales | Cuota de ventas |
| Refresco | 100 | 2500 | 0.006802721 |
| Pizza | 57 | 9000 | 0.003877551 |
| Hamburguesa | 25 | 1500 | 0.00170068 |
| Emparedado | 17 | 1700 | 0.001156463 |
Saludos
Stephanie.
Hola Tom,
¡Funcionó! Gracias.
Agregué
FILTER(ALL('Tabla'), 'Tabla'[Fecha] IN VALORES('Tabla'[Fecha]))
¡Realmente lo aprecio!
Hi, @5B
Haré todo lo posible para ayudar. Pruebe esto:
¿Qué te parece esto?
Aquí el código DAX para la medida:
Measure =
DIVIDE (
SUM ( 'Table'[Qty] ),
CALCULATE (
SUM ( 'Table'[Total Sales] ),
ALL ( 'Table' )
)
)
Hazme saber si esto ayuda 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!