Largest Gift, including soft credits

Hi!

I'm pulling together info for a deep dive on our members and donors and a few data points have been elusive, especially Largest Gift. I cruised the forums and nothing really fit. I made something that kind of works but it doesn't consider soft credits on the record. I'm currently without access to SQL, so that isn't an avenue for this at this time either.

(SELECT A.* FROM dbo.VS_ELEMENTS_CONTRIBUTION A INNER JOIN (SELECT customer_no, ref_no, RANK() OVER (PARTITION BY customer_no ORDER BY cont_amt DESC, cont_dt DESC, create_dt DESC, ref_no DESC) AS ranking FROM dbo.VS_CONTRIBUTION_WITH_INITIATOR) B ON A.customer_no = B.customer_no AND A.ref_no = B.ref_no AND B.ranking = 1)

Like I said, it works fine, but not with soft credits which is a real bummer. 

Can someone give me a nudge in the right direction?

Jenny