I am trying to do the equivalent of the excel formula shown on the attached screenshoot. Picking the highest percentage value and on the next column assigning the highest value as 100%. If possible group by company number and by state as well. Thank you in advance.