diff --git a/core/API/DataTableManipulator/Totals.php b/core/API/DataTableManipulator/Totals.php
index <HASH>..<HASH> 100644
--- a/core/API/DataTableManipulator/Totals.php
+++ b/core/API/DataTableManipulator/Totals.php
@@ -150,6 +150,13 @@ class Totals extends DataTableManipulator
         }
 
         $request = $this->request;
+        
+        /** @var \Piwik\Period\Day $period */
+        $period = $table->getMetadata('period');
+        if (!empty($period)) {
+            $request['date']   = $period->toString();
+            $request['period'] = $period->getLabel();
+        }
 
         return $this->callApiAndReturnDataTable($module, $action, $request);
     }
refs #<I> this should fix calculation in case we are dealing with a datatable\map and a subtable