To use the VARIANCE Function 

VARIANCE(Tag,Tag)

VARIANCE(Demo-influxdb/DEMO_01TI031.PV,Demo-influxdb/DEMO_01TI032.PV)