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
Estoy tratando de sumar sólo valores distintos para la columna "unidades" donde la combinación es la misma para mes + código + ciudad
Como se ve por ejemplo:
En la imagen de arriba sólo debe sumar 35.661 una vez.
He intentado este dax pero resultado poco éxito:
Sum RE distinct =
SUMX(
SUMMARIZE(Sheet1,Sheet1[Code],Sheet1[City],Sheet1[Month]),
MAX(Sheet1[Units])
)
El resultado debe ser:
https://1drv.ms/u/s!ApgeWwGTKtFdhyxvwe8MeK5wIhZ0?e=CfKDy4
¿Cómo puedo hacerlo bien?
Gracias.
Solved! Go to Solution.
@o59393, una nueva medida
sumx(summarize(Table,Table[month],Table[code],Table[city],Table[unit]),[unit])
o su fórmula como
Sum RE distinct =
SUMX(
SUMMARIZE(Sheet1,Sheet1[Code],Sheet1[City],Sheet1[Month],"_1",MAX(Sheet1[Units])),
[_1]
)
@o59393, una nueva medida
sumx(summarize(Table,Table[month],Table[code],Table[city],Table[unit]),[unit])
o su fórmula como
Sum RE distinct =
SUMX(
SUMMARIZE(Sheet1,Sheet1[Code],Sheet1[City],Sheet1[Month],"_1",MAX(Sheet1[Units])),
[_1]
)
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |