Gas and electricity both swung from negative annual inflation in March to positive annual inflation in April.