Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola a todos
He creado una fórmula SUMX según abajo que trae de vuelta los valores en una columna que son menos:
Solved! Go to Solution.
Hola @mjohnsonvertu
no necesitavalores aquí.
sólo nombre de la tabla o ALL()
MINUS = SUMX (
TotalData,
IF ( TotalData[ Cost] < 0, TotalData[ Cost], BLANK () )
)
O
MINUS = SUMX (
ALL(TotalData),
IF ( TotalData[ Cost] < 0, TotalData[ Cost], BLANK () )
)
VALUES solo devuelve valores distintos. No sé por qué estás usando VALUES allí, parece ser desenfrenado que la gente arroje VALOR o VALORES en fórmulas cuando no son necesarias. Desearía poder encontrar la fuente de donde viene ese mal hábito. Bueno.
Prueba esto:
MINUS =
SUMX (
FILTER('TotalDate',[ Cost] < 0),
[ Cost]
)
Añadido bono, debe ser mucho más performante.
Hola @mjohnsonvertu
no necesitavalores aquí.
sólo nombre de la tabla o ALL()
MINUS = SUMX (
TotalData,
IF ( TotalData[ Cost] < 0, TotalData[ Cost], BLANK () )
)
O
MINUS = SUMX (
ALL(TotalData),
IF ( TotalData[ Cost] < 0, TotalData[ Cost], BLANK () )
)
@mjohnsonvertu : la función VALUES siempre devolverá una lista única de valores, por lo que sería mejor si puede eliminar la función Valores en SUMX
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |