Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Want to find Max of Type = CU IN HOLE DIF
Maybe this
Aggr(Only({<CU_BoardNo={"$(=Max(CU_BoardNo))"},CU_TypeHole={'CU IN HOLE DIF'}>}CU_TypeHole),FA_ID)
This is result
but I want Result Type = CU IN HOLE DIF
Give it another go.
Sum(Aggr(Sum({<CU_BoardNo={"$(=Max(CU_BoardNo))"},CU_TypeHole={'CU IN HOLE DIF'}>}CU_HoleMax),FA_ID))
This is result . but I want Result Type CU IN HOLE DIF =40.29
Hi
Try like below
Max(Aggr(Sum({<CU_BoardNo={"$(=Max(CU_BoardNo))"},CU_TypeHole={'CU IN HOLE DIF'}>}CU_HoleMax)
,FA_ID,CU_BoardNo))
This is result.
not as desired
Want max value
with different ID
Maybe add RecNo() to your load script like this.
LOAD CU_TypeHole
.......,
RecNo() as R#
FROM SourceTable;
And here's an expression you can try
Sum(Aggr(Sum({<CU_BoardNo={"$(=Max(CU_BoardNo))"},CU_TypeHole={'CU IN HOLE DIF'},R#={"$(=Max(R#))"}>}CU_HoleMax),CU_BoardNo,FA_ID))