Great!! Please close thread by marking my reply as help and CORRECT to help ot. The correct button is under my reply in your main thread not in email
If possible can you explain the use of max function, I got the join and if else logic.
Thanks in advance,