Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I mean, I would like to insert a "Earlier date Price" column for the same product, in this table
Thanks.
Solved! Go to Solution.
@Luiz , Try a new column like
new column =
var _date = maxx(filter(Table, [product] =earlier([product]) && [Date] <earlier([Date])),[Date])
return
var _date = maxx(filter(Table, [product] =earlier([product]) && [Date] =_date ),[price])
or the set of these two columns
last Date =
maxx(filter(Table, [product] =earlier([product]) && [Date] <earlier([Date])),[Date])
last Price =
maxx(filter(Table, [product] =earlier([product]) && [Date] =earlier([last Date])),[price])
Hi,
Try this calculated column formula
=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])
Hope this helps.
@Luiz , Try a new column like
new column =
var _date = maxx(filter(Table, [product] =earlier([product]) && [Date] <earlier([Date])),[Date])
return
var _date = maxx(filter(Table, [product] =earlier([product]) && [Date] =_date ),[price])
or the set of these two columns
last Date =
maxx(filter(Table, [product] =earlier([product]) && [Date] <earlier([Date])),[Date])
last Price =
maxx(filter(Table, [product] =earlier([product]) && [Date] =earlier([last Date])),[price])
It works! Thanks a lot!
User | Count |
---|---|
93 | |
83 | |
77 | |
71 | |
65 |
User | Count |
---|---|
114 | |
101 | |
96 | |
65 | |
60 |