An XRF system, preferably handheld, includes an X-ray source for directing
X-rays to a sample, a detector responsive to X-rays emitted by the
sample, and a filter assembly with multiple filter materials located
between the X-ray source and the detector. An analyzer is responsive to
detector and is configured to analyze the intensities of X-rays
irradiated by the sample at one power setting and to choose a filter
material which suppresses certain intensities with respect to other
intensities. A device, controlled by the analyzer, automatically moves
the filter assembly to the chosen filter material and then the analyzer
increases the power setting to analyze certain non-suppressed
intensities.