A filter for an x-ray device to shape an intensity profile of x-ray radiation emanating from an x-ray source of the device has a filter body made of a material that attenuates x-ray radiation. The filter body is designed with a propeller shape and has two blades connected by an axle of the filter. The filter body is rotatable around the axle, which is permeable to the x-ray radiation. The x-ray device embodies at least one such filter.