I am trying to calculate some metric for reporting using Google data studio by connecting it with Postgre SQL. For the same business rule applied on Database and google data