PARTITION BY, inside OVER, splits the rows into independent groups on which the window function is computed separately, a bit like GROUP BY but without merging rows. Without it, the window covers the whole table.
Example
SUM(montant) OVER (PARTITION BY client_id)