Troubleshooting Calculated Fields in Data Studio

Troubleshooting Calculated Fields in Data Studio


This article will assist with calculated fields that are displaying incorrect results.


Check Parentheses

The most common cause of calculated field errors is missing parentheses. 

The dialog box to edit a calculated field in Looker Studio.

Type SUM(fieldname) around each field to obtain correct results.

A popup explaining the SUM() function in Looker Studio calculated fields.



Notes
Prefer to skip report formulas altogether? You can create the calculated field upstream in Power My Analytics instead. Data Builder's Create Field (Beta) feature lets you build custom metrics and dimensions before your data reaches Data Studio, with aggregation handled for you, so the field arrives in your report already calculated. See Create Calculated Fields with Data Builder to get started.
    • Related Articles

    • Create Data Studio Reports with Power My Analytics

      Data Studio is one of the most popular destinations for visualizing your Power My Analytics data. This guide brings together everything you need to get started with Data Studio, build effective reports using PMA connectors, and troubleshoot common ...
    • Data Studio Blending Super Guide

      The following article provides useful tips for how to blend data in Data Studio. What You Can Blend A list of what you can blend in Data Studio: Two data sources that share the exact same dimension. The keywords here are "dimension" and "exact". We ...
    • Custom or Calculated Fields Show the Wrong Numbers

      This article will address the following issue: Custom fields in a Data Studio report return inaccurate calculations. Solution Type SUM () around each of the fields in your formula. Tip: You can also avoid formula aggregation issues by creating the ...
    • Basic Troubleshooting

      Most errors can be solved easily and independently. This article will guide you through some basic troubleshooting steps to get your reports looking great as quickly as possible. Click "See Details" on the Error Description If your report was made ...
    • All Fields Are Dimensions in Data Studio Configuration Screen

      This article will address the following issue: Only dimensions appear in Data Studio's configuration screen. All fields are green though metrics previously appeared in blue. Cause This is not an error. It was a part of Data Studio's data modeling ...