I have a set of data that lists all of the dividend transactions for hundreds of different stocks (each with a corresponding unique CUSIP#), but many of these stocks pay multiple dividends throughout the year, so this data has anywhere from 10 to 2000 entries per stock. If I build a formula and append a "# to Sample" field to that data set, is there anyway I can sample "X" number of dividend records for a given stock based on that value in the "# to Sample" field? Within the standard sample tool, I don't see a sample based on formula. If it let me put N equal to a variable or field (i.e. "# to Sample") then it would be problem solved I guess.
Any thoughts?
That # to Sample would be calculated using a summarize function and then a formula to calculate how many per CUSIP, and then I guess I would run the sample off of the raw data.
Hopefully this makes sense. TIA for your help