Hi Bala,
Thank you for explaining your dilemma more thoroughly. I think in order to compute the daily energy consumption for the entire building, you would need to manipulate (aggregate) the data from InfluxDB using a Kapacitor TICKscript.
Here is a thread where another user did something similar: [Solved] Writing a TICKscript to aggregate multiple measurements into one
Hope that helps!