Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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/