Forum Discussion
select value for latest timestamp
- 5 years ago
jitpbi , Try three measures like
last ICR = lastnonblankvalue(Table[Datetime], max(Table[ICR]))
last Inverter = lastnonblankvalue(Table[Datetime], max(Table[Inverter]))
last RUL = lastnonblankvalue(Table[Datetime], max(Table[RUL]))
Hi jitpbi ,
According to your request, I did the following test, just create a calculated column. The idea is that the value returned by the current row is the RUL value corresponding to the latest date when the column ICR and the column Inverter are the same. The specific reference is as follows:
Result =
CALCULATE (
MAX ( 'Table'[RUL] ),
FILTER (
ALL ( 'Table' ),
'Table'[ICR] = EARLIER ( 'Table'[ICR] )
&& 'Table'[Inverter] = EARLIER ( 'Table'[Inverter] )
&& 'Table'[Datetime]
= CALCULATE (
MAX ( 'Table'[Datetime] ),
FILTER (
ALL ( 'Table' ),
'Table'[ICR] = EARLIER ( 'Table'[ICR] )
&& 'Table'[Inverter] = EARLIER ( 'Table'[Inverter] )
)
)
)
)
If the problem is still not resolved, please provide detailed error information and let me know immediately, looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.