Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Buenas tardes a todos, estoy intentando ponderar valores de una tabla para diferentes atributos (proteina, humedad, grasa, etc...).
En la columna de Cantidad tengo valores en todas las fechas, sin embargo en las columnas de atributos tengo algunos valores "null".
El problema que tengo es que el calculo ponderado le esta asignando valor "0" a estos valores nulos y me desvirtua el resultado final.
Como debo hacer para indicarle a la medida utilizada que cuando haya un valor nulo (null) no tenga en cuenta esa fila en el calculo?
Este es el código que estoy utilizando para hacer el promedio ponderado:
M, gracias!
Solved! Go to Solution.
See if filtering out blanks (nulls) helps:
ACIDEZ (P) =
CALCULATE (
DIVIDE (
SUMX ( GIRASOL, GIRASOL[CANTIDAD] * GIRASOL[ACIDEZ] ),
SUM ( GIRASOL[CANTIDAD] )
),
NOT ISBLANK ( GIRASOL[CANTIDAD] )
)
Hi, @MARMAXCHEROT ;
Muchas gracias por sus respuestas, pude solucionarlo con las alternativas propuestas por ustedes.
Saludos!
Hi, @MARMAXCHEROT ;
You could try it.
ACIDEZ (P) = DIVIDE(
SUMX ( 'GIRASO', 'GIRASO'[CANTIDAD] *'GIRASO'[ACIDEZ] ),
CALCULATE( SUM(GIRASO[CANTIDAD]),'GIRASO'[ACIDEZ]<>BLANK()))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
See if filtering out blanks (nulls) helps:
ACIDEZ (P) =
CALCULATE (
DIVIDE (
SUMX ( GIRASOL, GIRASOL[CANTIDAD] * GIRASOL[ACIDEZ] ),
SUM ( GIRASOL[CANTIDAD] )
),
NOT ISBLANK ( GIRASOL[CANTIDAD] )
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
216 | |
89 | |
76 | |
67 | |
60 |