Sampling for solution analysis