Max child value dependent on max date
I have two columns a returned date and a recorded level. The maximum recorded level is dependent on the maximum date. The value will sit in the parent row. Currently I have =MAX(CHILDREN()) in both columns. Can this be done using Children or Parent references or is an IF statement required. First time on the community so hope this is descriptive enough.
Comments
-
How exactly is the level dependent on the date?
-
We have continual monitoring but earlier recordings may have a higher level number. From the example below I need to show the highest recording on 30/12/15 which is 210. The 210 then dictates the frequency and date of repeat monitoring and is used in another formla. Initially latest recordings were to replace old but this has changed so need to change =MAX(CHILDREN()) in level column to be dependent on the latest date. Hope this make sense.
30/12/15 210
30/12/15 180
03/06/15 320
03/06/15 540 -
It doesn't, but it may be because is 10pm on a Friday night.
Are you looking for the Max of the date (Dec 30, 2015) -- ie the most recent date and then the max level recorded on that date?
If so, then in the Date column, keep your MAX(CHILDREN())
In the Level column, use this formula (change [Date] to you Date column name
=MAX(COLLECT(CHILDREN(), CHILDREN([Date]@row), [Date]@row))
I hope this helps.
Craig
-
Are you looking for the Max of the date (Dec 30, 2015) -- ie the most recent date and then the max level recorded on that date?
That's what I'm reading...
-
Thank you, Craig. This worked perfectly.
Regards
Irene
-
Yeah!
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives