An X-ray apparatus which includes an X-ray source for producing X-rays, an X-ray detector for detecting the X-rays, a filter (12) which is arranged between the X-ray source and the X-ray detector and includes a plurality of tubular filter elements (13) having a longitudinal direction z and a circumference, the X-ray apparatus also including an electrical device which is provided with at least one power supply source for controlling the individual filter elements,
- each filter element having an internal volume (21) for receiving a liquid filling (22) having electrically conductive (122) and X-ray absorbing (124) properties, said filter element having an X-ray absorptivity which is dependent on the quantity of X-ray absorbing liquid (124) present in the internal volume,
- each filter element (13) being provided with a first electrode (23) for applying a first electric potential to a wall of the filter element, and a second electrode (29) for applying a second electric potential to the internal volume (21) of the filter element, and
- the X-ray absorptivity of each filter element (13) being adjustable by step-wise control of a level of the X-ray absorbing liquid (124) in the longitudinal direction z of the filter element, characterized in that the first electrode (23) includes a series of electrode segments which extend at least over a part of the circumference of the filter element (13) and succeed one another in the longitudinal direction z of the filter element, directly successive electrode segments being electrically insulated from one another and individually controllable by the electrical device.