Forum Discussion
Matren
2 years agoFrequent Visitor
DAX Last Record Value
Hello Everyone, How could I write a DAX expression with existing columns (Date, Product, Value) to generate a new column (Last Record)? Basically, it is taking the last Value for a Product an...
- 2 years ago
ThxAlot
Super User
2 years ago- lbendlin2 years ago
Super User
Slight variation:
Last = SELECTCOLUMNS(INDEX(-1,ALL('DATA'),PARTITIONBY([Product]),MATCHBY([Date])),[Value]) - Matren2 years agoFrequent Visitor
Hi ThxAlot ,
Thanks! I think this looks right.
I will check out the solution with my implementation and then accept the solution.
Have a good day,
Matren