Click here to Skip to main content
15,896,154 members

Comments by qulaitks (Top 13 by date)

qulaitks 20-May-23 7:02am View    
Thansk, I have tried that and the output is similar to the previous code using the FIRST_VALUE
qulaitks 19-May-23 8:56am View    
I have tried your corrected code and had different output than yours
TransID XCost NewCost BPrice
37 49700.00 49700.00 49.700000
37 24850.00 24850.00 49.700000
37 52674.00 52674.00 48.236263
37 29174.00 29174.00 49.280405
37 29174.00 29174.00 36.975918
qulaitks 9-Jan-21 3:15am View    
I have updated the quetion and removed the link.
qulaitks 8-Jan-21 1:52am View    
The promblem I had is I bought 1000 share by 49.7 then sold 500 by 50.6 then bought 592 with price of 47. How could I calculate the weighted average price.
qulaitks 1-Jun-20 2:25am View    
DGV cell(0) holds int values and Cell (1) bit. Regards