The consumer price index rose 3.5% in the past year. Housing and gasoline prices kept inflation elevated in March.