The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Tengo estos conjuntos de datos (simplificados por brevedad). La tabla 'Análisis' a veces puede tener datos que faltan. Así que solo hay un valor para una de las fechas.
calendario
fecha |
06/21/2021 |
06/22/2021 |
producción
fecha | Toneladas |
06/21/2021 | 4899 |
06/22/2021 | 13890 |
análisis
fecha | valor |
06/22/2021 | 32 |
Tengo esta medida para calcular el valor ponderado en toneladas (creado por Quick Measure)
Value weighted by Tons per Date =
VAR __CATEGORY_VALUES = VALUES('Calendar'[Date])
RETURN
DIVIDE(
SUMX(
KEEPFILTERS(__CATEGORY_VALUES),
CALCULATE(SUM('Analysis'[Value]) * SUM('Production'[Tons]))
),
SUMX(
KEEPFILTERS(__CATEGORY_VALUES),
CALCULATE(SUM('Production'[Tons]))
)
)
Hacer los cálculos manualmente en Excel me da 23.9. Sin embargo, Power BI me da 22,7.
Así que tengo dos preguntas...
1. ¿Por qué es un valor diferente?
2. ¿Puedo de alguna manera proporcionar un valor para donde faltan datos? ¿Como un 'valor predeterminado'?
El promedio de notas se podria calcular también automaticamente a traves de herramientas online como https://mi-promedio.cl/
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.