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, chicos
En un poco de pepinillo aquí, no puedo conseguir mi cabeza alrededor de cómo obtener el valor al principio del mes y al final del mes.
Para la tabla siguiente quiero obtener el valor de Primer KM registrado en un mes para V1 y el último valor de KM. De forma similar para V2 y V3....
¿Cómo agrego un filtro para que Table1[Asset] - V1 (sin especificar un valor fijo de V1 y cambia como la fila cambia como podemos hacer en Excel)
Además, como hay varias fechas en la columna de fecha me da un error.
Activo | Fecha | Km | Primer valor KM del mes | Valor del último KM del mes |
V1 | 1/01/2020 | 1200 | ||
V1 | 2/01/2020 | 1300 | ||
V2 | 3/01/2020 | 1400 | ||
V3 | 4/01/2020 | 1500 | ||
V2 | 5/01/2020 | 1600 | ||
V7 | 6/01/2020 | 1700 | ||
V6 | 7/01/2020 | 1800 | ||
V10 | 8/01/2020 | 1900 | ||
V1 | 9/01/2020 | 2000 | ||
V2 | 10/01/2020 | 2100 | ||
V3 | 11/01/2020 | 2200 | ||
V1 | 12/01/2020 | 2300 | ||
V1 | 29/01/2020 | 2400 | ||
V2 | 14/01/2020 | 2500 | ||
V3 | 15/02/2020 | 2600 | ||
V2 | 16/02/2020 | 2700 | ||
V7 | 17/02/2020 | 2800 | ||
V6 | 18/02/2020 | 2900 | ||
V10 | 19/02/2020 | 3000 | ||
V1 | 20/02/2020 | 3100 | ||
V2 | 21/02/2020 | 3200 | ||
V3 | 22/02/2020 | 3300 |
Espero algunas respuestas. Avísame si necesita un poco más de cl
Salud.
Solved! Go to Solution.
Crear siguiendo como nuevas columnas
start of month = minx(filter(table,[Asset] =earlier([Asset]) && format([Date],"YYYY-MM") =format(earlier([Date]),"YYYY-MM")),[Date])
end of month =maxx(filter(table,[Asset] =earlier([Asset]) && format([Date],"YYYY-MM") =format(earlier([Date]),"YYYY-MM")),[Date])
First KM Value of the Month =minx(filter(table,[Asset] =earlier([Asset]) && format([start of month],"YYYY-MM") =format(earlier([Date]),"YYYY-MM")),[KM])
Last KM Value of the month=maxx(filter(table,[Asset] =earlier([Asset]) && format([Date],"YYYY-MM") =format(earlier([end of month]),"YYYY-MM")),[Date])
Crear siguiendo como nuevas columnas
start of month = minx(filter(table,[Asset] =earlier([Asset]) && format([Date],"YYYY-MM") =format(earlier([Date]),"YYYY-MM")),[Date])
end of month =maxx(filter(table,[Asset] =earlier([Asset]) && format([Date],"YYYY-MM") =format(earlier([Date]),"YYYY-MM")),[Date])
First KM Value of the Month =minx(filter(table,[Asset] =earlier([Asset]) && format([start of month],"YYYY-MM") =format(earlier([Date]),"YYYY-MM")),[KM])
Last KM Value of the month=maxx(filter(table,[Asset] =earlier([Asset]) && format([Date],"YYYY-MM") =format(earlier([end of month]),"YYYY-MM")),[Date])
Te mateunas una leyenda, un salvavidas. Estaba tratando de usar Anteriormente, pero seguía pensando que sólo rerfers a la fila anterior que tiene el valor de Columna A. Pero definitivamente me has hecho las cosas más fáciles ahora.
Salud.
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.