My dataset tracks customer orders. Customers can buy a bundle, and are then charged one bundle_price:
Customer 1 bought bundle A, for a bundle_price of 200. The different products within the bundle are also listed with its original list_price. I want to reassign this bundle_price to each individual product, so that I can exclude bundles from my dataset. I want to add two columns: List_Ratio and Ratio_Bundle_Price. The data should look like this:
I am thinking to use a case statement with a window function, but not sure how to exactly execute this. Any help would be appreciated.

