Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sxbbb
Creator III
Creator III

Want to find Max.

Want to find Max of Type = CU IN HOLE DIF
 
Suchanan_1-1669364195283.png

 

Suchanan_2-1669364283531.png

 

 
15 Replies
BrunPierre
Partner - Master
Partner - Master

Maybe this

Aggr(Only({<CU_BoardNo={"$(=Max(CU_BoardNo))"},CU_TypeHole={'CU IN HOLE DIF'}>}CU_TypeHole),FA_ID)

Sxbbb
Creator III
Creator III
Author

This is result 

Suchanan_0-1669369390819.png

but I want Result Type = CU IN HOLE DIF

Suchanan_1-1669369436993.png

 

 

BrunPierre
Partner - Master
Partner - Master

Give it another go.

Sum(Aggr(Sum({<CU_BoardNo={"$(=Max(CU_BoardNo))"},CU_TypeHole={'CU IN HOLE DIF'}>}CU_HoleMax),FA_ID))

Sxbbb
Creator III
Creator III
Author

Suchanan_0-1669599597203.png

This is  result . but I want Result Type  CU IN HOLE DIF  =40.29 

Suchanan_1-1669599746819.png

 

MayilVahanan

Hi 

Try like below

Max(Aggr(Sum({<CU_BoardNo={"$(=Max(CU_BoardNo))"},CU_TypeHole={'CU IN HOLE DIF'}>}CU_HoleMax)

,FA_ID,CU_BoardNo))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Sxbbb
Creator III
Creator III
Author

This is result.

Suchanan_0-1669615765681.png

 

Sxbbb
Creator III
Creator III
Author

not as desired

 

Sxbbb
Creator III
Creator III
Author

Want max value 
with different ID 

Suchanan_1-1669616574122.png

 

 
BrunPierre
Partner - Master
Partner - Master

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))