... There might be several candidate processes, but the one that comes most readily to mind is to "mix" the components of the powder at the time of bag filling, i.e. to fill the bags from two or more streams of pure component. For sake of discussion let us limit this to components A and B. The problem then is to adjust the manufacturing process so the bag is always loaded with the same mass of component A. The same can be said of component B.
There would seem to be two ways of doing this, one based on mass measurement and the other based on calibrated flows of powder. For example, one could add powder A to a weighing pan, adjust the amount until it has the correct weight, and add it to the bag. Alternatively one could add powder A to the bag and weigh the bag, and assuming the weight of the bag was previously known, one would top off the bag with just enough powder to bring it up to weight. One would then to the same with component B. These mass-based processes would be expensive, though it might be possible to automate it to bring the costs in line with commercial reality, and in any case they would likely be "gold standard" methods.
The other way would be to add components A and B using some kind of calibrated flow streams, i.e. there would be a stream of component A of known flow rate and a stream of component B in another flow stream. They would be either added to the bag without any premixing, or the streams could be mixed just as or just before they are added to the bag. If mixed before being added to the bag one would need to be sure the streams do not settle into a heap before being added to the bags. Otherwise the components will stratify and we are back to the problem of uniformly sampling an inhomogeneous heap.