Keeping data from the first record , how?

Hello how to keep some data from the last record to avoid retyping the same data again exemple : I have a (sales table) and these column [date] [client] [product]
1rst record: I type these data [date],[client],[product]
2seconde record: I dont want retyping again [date] and [client ] i want to be kept from the 1rst record

Solved Solved
0 3 267
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Youโ€™ll need to use an Initial value expression:

This will get you the value of the Date column from the last row of the My Table table:

LOOKUP(
  MAX(My Table[_ROWNUMBER]),
  "My Table",
  "_ROWNUMBER",
  "Date"
)

View solution in original post

3 REPLIES 3

I havenโ€™t tried it, but maybe you could use a lookup function, and use [row] - 1. Put it in for the initial value.

Lookup([_thisrow]-1, โ€œtable nameโ€, โ€œrowโ€,โ€œclientโ€)

Just a guess

Steve
Platinum 4
Platinum 4

Youโ€™ll need to use an Initial value expression:

This will get you the value of the Date column from the last row of the My Table table:

LOOKUP(
  MAX(My Table[_ROWNUMBER]),
  "My Table",
  "_ROWNUMBER",
  "Date"
)
Top Labels in this Space