Forum Discussion
Lookup Record Value from Previous Month
- 3 years ago
Hi Anonymous ,
It's my pleasure!
You can create another calculated column.
Last month value = MAXX ( FILTER ( 'Table', 'Table'[Record ID] = EARLIER ( 'Table'[Record ID] ) && MONTH ( 'Table'[Month] ) = MONTH ( EARLIER ( 'Table'[Month] ) ) - 1 ), 'Table'[Value] )Result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yanjiang-msft This is excellent,thank you for your help. One last part to solve is how to get last months record value, showing against this months record. Any advice on how i would be able to calculate the last months value column?
Hi Anonymous ,
It's my pleasure!
You can create another calculated column.
Last month value =
MAXX (
FILTER (
'Table',
'Table'[Record ID] = EARLIER ( 'Table'[Record ID] )
&& MONTH ( 'Table'[Month] )
= MONTH ( EARLIER ( 'Table'[Month] ) ) - 1
),
'Table'[Value]
)
Result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.