您可以尝试以下措施-
last_recovery_id =
var current_row_value = min(your_table_name[Value])
var current_row_id = min(your_table_name[ID])
var previous_max_value =
CALCULATE(
MAX(your_table_name[Value]),
FILTER(
ALL(your_table_name),
your_table_name[Value] < current_row_value
&& your_table_name[ID] > current_row_id
)
)
var prevous_id =
CALCULATE(
MAX(your_table_name[id]),
FILTER(
ALL(your_table_name),
your_table_name[Value] = previous_max_value
&& your_table_name[ID] > current_row_id
)
)
RETURN IF(prevous_id = BLANK(),"X", prevous_id)
输出是-