Revision wise Tabular View

Hi,
     I have created the tabular view. Please do have a look.Thank You
we are checking the global variable revision, but we pass in rev.  Can we use rev instead?