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
Quiero decir, me gustaría insertar una columna "Precio de fecha anterior" para el mismo producto, en esta tabla
Gracias.
Solved! Go to Solution.
@Luiz , Pruebe una nueva columna como
nueva columna ?
var _date á maxx(filter(Table, [product] ?earlier([product]) && [Date] <earlier([Date])),[Fecha])
devolución
var _date á maxx(filter(Table, [product] ?earlier([product]) && [Date] ?_date ),[price])
o el conjunto de estas dos columnas
la última fecha ?
maxx(filter(Table, [product] ?earlier([product]) && [Date] <earlier([Date])),[Date])
ultimo precio ?
maxx(filter(Table, [product] á earlier([product]) && [Date] ?earlier([last Date])),[price])
Hola
Pruebe esta fórmula de columna calculada
•lookupvalue(data[Price],data[date],calculate(max(Data[Date]),filter(Data,Data[Date]<earlier(Data[Date])&&&Data[Product]-earlier(Data[Product]))),data[product],data[product])
Espero que esto ayude.
@Luiz , Pruebe una nueva columna como
nueva columna ?
var _date á maxx(filter(Table, [product] ?earlier([product]) && [Date] <earlier([Date])),[Fecha])
devolución
var _date á maxx(filter(Table, [product] ?earlier([product]) && [Date] ?_date ),[price])
o el conjunto de estas dos columnas
la última fecha ?
maxx(filter(Table, [product] ?earlier([product]) && [Date] <earlier([Date])),[Date])
ultimo precio ?
maxx(filter(Table, [product] á earlier([product]) && [Date] ?earlier([last Date])),[price])
¡Funciona! ¡Muchas gracias!
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 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |