Forum Discussion
First value / approval
- 6 years ago
Youn need the first reported time:
First Reported Time = CALCULATE ( MIN ( 'Table'[Update Time] ), ALLEXCEPT ( 'Table', 'Table'[Model], 'Table'[Entity], 'Table'[Period] ) )
Thank you for looking into this!
I've attached an excel sheet with an example below.
I need to calculate if the entities were On time with their finance reporting:
This calculation is easy and I do it as following: If Update time minus App deadline is higher than zero, then it is On time (I use Custom columns to do it).
Problem is that entities can report several times, like e.g. Entity F below. And I need to take in cionsideration only first approval...
I hope it is clearer now?
Thank you very muhc!
| MODEL | ENTITY | UPDATE TIME | APP DEADLINE |
| FINANCE_INPUT | A | 2020-04-03 20:30:33 | 2020-04-03 21:00 |
| FINANCE_INPUT | B | 2020-04-03 19:21:54 | 2020-04-03 16:00 |
| FINANCE_INPUT | C | 2020-04-03 19:01:09 | 2020-04-03 10:00 |
| FINANCE_INPUT | D | 2020-04-03 18:54:11 | 2020-04-03 10:00 |
| FINANCE_INPUT | E | 2020-04-03 17:42:53 | 2020-04-03 16:00 |
| FINANCE_INPUT | F | 2020-04-03 16:01:47 | 2020-04-03 16:00 |
| FINANCE_INPUT | F | 2020-04-03 15:56:24 | 2020-04-03 16:00 |
update 2:
Hello,
I should probably also mention that in the file, there are different types of reports (column MODEL) and different periods and I need to calculate if the reporting was on time per Entity, Model and per Period..
| MODEL | PERIOD | ENTITY | UPDATE TIME | APP DEADLINE |
| Sales | March2020 | A | 2020-04-03 20:30:33 | 2020-04-03 21:00 |
| Sales | March2020 | B | 2020-04-03 20:05:04 | 2020-04-03 21:00 |
| Sales | March2020 | B | 2020-04-03 22:15:04 | 2020-04-03 21:00 |
| Sales | February2020 | B | 2020-04-03 19:21:54 | 2020-04-03 16:00 |
| FINANCE_INPUT | March2020 | C | 2020-04-03 19:01:09 | 2020-04-03 10:00 |
| FINANCE_INPUT | March2020 | D | 2020-04-03 18:54:11 | 2020-04-03 10:00 |
| FINANCE_INPUT | March2020 | E | 2020-04-03 17:42:53 | 2020-04-03 16:00 |
| FINANCE_INPUT | March2020 | F | 2020-04-03 16:01:47 | 2020-04-03 16:00 |
| FINANCE_INPUT | March2020 | F | 2020-04-03 15:56:24 | 2020-04-03 16:00 |
- parry2k6 years agoSuper User
KatkaS I guess in case of entity F, you want updated time, minimum time from both the records or you want the first record, if you want updated time from first records, what identifies the first record?
- KatkaS6 years agoPost Patron
Hello Parry,
in case of entity F, I only want first record - first record is the one that comes first timewise - in column UPDATE TIME (in case of entity F first is UPDATE TIME at 15:56:24).
I hope it clearer now.. thank you!