Correct Running Total

Question:

The stocks must be ordered by their portfolio weight in descending order and will be added to the portfolio one by one. We would like to know what the running total portfolio weight is.

Return: name, running total weight

Order by: weight desc

Show Table
Show Desired Output

Query Window:

Click me!

Show Hint
Show Answer

Your output: