Hi!
I think you can try to create columns 2, 3, and 4 as query calculations, using a case when statement.
For instance,
column2 = case when year = ?yr? then data item (ie revenue, qty, etc) else 0 end
column3 = case when month = ?month? then data item (ie revenue, qty, etc) else 0 end
column4 = column2 + column4
hopefully, that works..