06-29-2016 02:55 PM - edited 06-29-2016 03:57 PM
I have the data in format below:
id group Sales Country1 Country2...... Region1 Region2.......
1 1 200 USA Canada East South
2 1 300 USA UK West North
3 2 400 ............
I have to equally distribute Sales based on the number of Country as well do the same for Regions; and then create a matrix on the sum of Sales with Country on the Row and Regions on the Columns.
06-29-2016 04:02 PM
That sounds like a transpose. Look into proc transpose.
I generally don't download XLSX files so if you can't post sample data, someone else will help.
I still would recommend putting the expected output from your sample file, rather than having people guess at what you want.