Forum Discussion
ania_roh
Helper III
5 years agoneed help with dax formule
Hi, I´m trying to calculate the last value of every ID KPI (with a measure), as I showed it in the picture: I mean, the last value is the value of the previos date, for every ID KPI, so I tr...
- 5 years ago
ania_roh , Create a new column like
new column =
var _max = maxx(filter(Table, [date]<earlier([Date]) && [ID KPI] =earlier([ID KPI])),[Date])
return
maxx(filter(Table, [date] =_max && [ID KPI] =earlier([ID KPI])),[value])
amitchandak
Super User
5 years agoania_roh , Create a new column like
new column =
var _max = maxx(filter(Table, [date]<earlier([Date]) && [ID KPI] =earlier([ID KPI])),[Date])
return
maxx(filter(Table, [date] =_max && [ID KPI] =earlier([ID KPI])),[value])
- ania_roh5 years ago
Helper III
amitchandak could you please repeat the part after return...
I have a error in that part, but I don´t know why.
Thank you a lot.