Hi,
If it performs reasonably then you can further optimise it if your IDs are sorted in column A (as shown in the attachment).
This formula:
would become:![]()
=GETPIVOTDATA("Max of Value",$G$5,$A$1,A2)
This effectively means that GETPIVOTDATA() is only called once per ID.![]()
=IF(A2=A1,C1,GETPIVOTDATA("Max of Value",$G$5,$A$1,A2))
Bookmarks