Forum Discussion
Anonymous
3 years agoNot applicable
Lookup Record Value from Previous Month
I am trying to understand the most efficient way to look up changes between cell values within an appended query. Background: Each month a new excel file is appended to create a 'Combined' query ...
- 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.
Anonymous
3 years agoNot applicable
v-yanjiang-msft - Looking for a bit more advice on this!
The code provided seems to work however as its based on Months only, in January (01) its not finding December (12) as i think the formula is looking at month number only.
Is there any way of expanding this to work for Year as well?
Thanks!