Forum Discussion
PRECIO DE ULTIMA COMPRA
- 4 years ago
@Syndicate_Admin , No muy claro
Una de las formas de conocer el último precio como nueva columna es
Último precio =
var _max = maxx(filter(Table, [Item] =earlier([Item]) && [Date] <= earlier([date])) , [Date])
devolución
maxx(filter(Table, [Item] =earlier([Item]) && [Date] =_max) , [Price])
Para obtener el precio más reciente, consulte
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
@Syndicate_Admin , No muy claro
Una de las formas de conocer el último precio como nueva columna es
Último precio =
var _max = maxx(filter(Table, [Item] =earlier([Item]) && [Date] <= earlier([date])) , [Date])
devolución
maxx(filter(Table, [Item] =earlier([Item]) && [Date] =_max) , [Price])
Para obtener el precio más reciente, consulte
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0