Forum Discussion
alexburn
5 years agoNew Member
Latest value after filters
Hi guys, Here is an example of my raw data: Job______ Period___ Date______________ Progress____ 11111 N1 01 May 2021 50 11111 N2 01 June 2021 60 11111 01 July 2021 0...
- 5 years ago
Hi,
This calculated column fomula works
=LOOKUPVALUE(Data[Progress____],Data[Date______________],CALCULATE(MAX(Data[Date______________]),FILTER(Data,Data[Job______]=EARLIER(Data[Job______])&&Data[Period___]<>BLANK())),Data[Job______],Data[Job______])Hope this helps.
Greg_Deckler
Community Champion
5 years agoalexburn Seems like:
LatestProgress Column =
VAR __Job = [Job]
VAR __Table = FILTER('Table',[Job] = __Job && NOT(ISBLANK([Period])))
VAR __Max = MAXX(__Table,[Date])
RETURN
MAXX(FILTER(__Table,[Date] = __Max), [Progress])alexburn
5 years agoNew Member
I have tried this and the result returned without error, however, it is not the correct result.
See below example/result (filter to just one job):
| Job_____ | Period_____ | Date_____ | Progress_____ | LatestProgres_____ |
| 11111 | N3 | 01 July 2021 | -100 | 0 |
| 11111 | N2 | 01 June 2021 | -100 | 0 |
| 11111 | N1 | 01 May 2021 | -100 | 0 |
| 11111 | C11 | 01 March 2021 | 0 | 0 |
| 11111 | C12 | 01 April 2021 | 0 | 0 |
| 11111 | 01 April 2022 | 0 | ||
| 11111 | 01 March 2022 | 0 | ||
| 11111 | N4 | 01 August 2021 | -100 | 0 |
| 11111 | N5 | 01 September 2021 | -100 | 0 |
I'm not sure if the (negative) -100 has anything to do with it?
I've tried MINX instead of MAXX to test this, but the result was the same.