I am partitioning my data by WeekEnd and have created a cumulative column adding up my hours.
SQL: Sum(WorkHours) OVER (partition BY WkEnd, UserName ORDER BY ReportDt, UserName ASC ROWS UNBOUNDED PRECEDING) cumhours
I need to create a column (Wkhours) to bring in only my max cumhours on the max day of the week by UserName
e.g.
