#Enhancing Your Data Studio Report with Calculated Fields
Explore tagged Tumblr posts
Text
Your Career with a Google Data Studio Course in Vasai-Virar
Introduction: Mastering Data Visualization
In today's data-driven world, the ability to analyze and visualize data is crucial for making informed decisions. Google Data Studio is a powerful tool that allows users to create interactive and dynamic reports and dashboards. Whether you're a student, a marketing professional, or a data analyst, learning Google Data Studio can significantly enhance your data presentation skills. Enrolling in a Google Data Studio Course in Vasai-Virar will equip you with these essential skills. This article will explore the benefits of learning Google Data Studio, the demand for data visualization expertise, career opportunities, and why HrishiComputer is the best place to learn.
Why Learn Google Data Studio?
Learning Google Data Studio offers numerous benefits that can enhance various aspects of your professional life:
Enhanced Data Reporting: Google Data Studio enables you to turn raw data into insightful visualizations. By enrolling in a Google Data Studio Course in Vasai-Virar, you can learn how to create compelling reports that clearly communicate key metrics and trends.
Improved Decision-Making: Effective data visualization helps identify patterns and insights quickly, leading to better decision-making. Mastering Google Data Studio can help you provide valuable data-driven recommendations.
Career Advancement: Proficiency in Google Data Studio is a highly sought-after skill in many industries, including marketing, finance, and healthcare. Completing a Google Data Studio Course in Vasai-Virar can make you a more competitive candidate and open up new career opportunities.
Growing Demand for Data Visualization Skills
The ability to visualize data effectively is increasingly important as more businesses rely on data to drive their strategies. Companies need professionals who can transform complex data sets into clear, actionable insights. Enrolling in a Google Data Studio Course in Vasai-Virar will prepare you for roles such as data analyst, business intelligence specialist, and marketing analyst, where data visualization is a critical skill.
Career Opportunities and Earnings with Google Data Studio Skills
Career opportunities for those skilled in Google Data Studio are diverse and often come with attractive salary packages:
Data Analyst: Analyzing data sets and creating visual reports to support business decisions. Data analysts typically earn between INR 4,00,000 and INR 7,00,000 annually.
Business Intelligence Specialist: Developing and maintaining business intelligence tools and dashboards. Salaries for these roles range from INR 5,00,000 to INR 9,00,000 per year.
Marketing Analyst: Using data to analyze market trends and measure the effectiveness of marketing campaigns. Marketing analysts can earn between INR 3,50,000 and INR 6,00,000 annually.
Google Data Studio Course Syllabus at HrishiComputer
HrishiComputer in Vasai-Virar offers a comprehensive Google Data Studio Course designed to equip you with essential data visualization skills. The syllabus includes:
Introduction to Google Data Studio: Learn the basics of data visualization and navigate the Google Data Studio interface.
Connecting Data Sources: Understand how to connect various data sources, including Google Analytics, Google Sheets, and SQL databases, to Google Data Studio.
Building Reports and Dashboards: Gain hands-on experience in creating, customizing, and managing reports and dashboards.
Using Visualization Tools: Explore different types of charts and visualizations, such as bar charts, pie charts, and geo maps, to effectively represent your data.
Advanced Features: Learn advanced techniques such as creating calculated fields, blending data, and using filters to create dynamic reports.
Collaboration and Sharing: Discover how to share your reports and collaborate with team members in real-time.
Why Choose HrishiComputer for Google Data Studio Training?
HrishiComputer in Vasai-Virar is a top choice for learning Google Data Studio due to its comprehensive curriculum and expert instruction. Hereâs why our Google Data Studio Course stands out:
Experienced Instructors: Our trainers are certified professionals with extensive experience in data visualization and Google Data Studio. They provide practical insights and hands-on guidance.
Interactive Learning: The course includes real-world projects and practical exercises, ensuring that you gain the skills needed to create impactful data visualizations.
Recognized Certification: Upon completing the course, you will receive a certification from HrishiComputer, which is highly valued by employers and enhances your resume.
Affordable Fees: We offer competitive pricing to make our courses accessible to everyone. Our goal is to provide quality education at an affordable cost.
How to Enroll
Ready to enhance your data visualization skills and boost your career prospects? Enroll in our Google Data Studio Course in Vasai-Virar at HrishiComputer. Our comprehensive training program is designed to equip you with the skills needed to excel in todayâs data-driven world.
Sign Up for Google Data Studio Training at HrishiComputer and start transforming your data skills today!
Frequently Asked Questions (FAQ)
Q1: Do I need prior experience with data visualization to join the course?A: No prior experience is necessary. The course is suitable for both beginners and those looking to enhance their data visualization skills.
Q2: What type of certification will I receive upon completion?A: Upon successful completion of the course, you will receive a certification from HrishiComputer, recognized by many employers.
Q3: Are classes conducted online or offline?A: The primary mode of instruction is offline, providing a hands-on learning experience. However, we also offer supplementary online resources.
Q4: What is the duration of the course?A: The course typically spans 8 weeks, with flexible scheduling options to accommodate students and working professionals.
Q5: How can data visualization skills benefit my career?A: Data visualization skills are highly valuable across various job roles, enhancing your ability to interpret and communicate data effectively. These skills make you a more attractive candidate to employers and can lead to better job opportunities and higher earnings.
By completing this course, you will gain a comprehensive understanding of Google Data Studio, from basic functionalities to advanced features. This will empower you to create impactful data visualizations and make informed, data-driven decisions. Join HrishiComputer today and master the skills essential for success in the modern workplace.
#Google Data Studio Course in Vasai-Virar#Learn Google Data Studio in Vasai-Virar#Data Visualization Course Vasai-Virar#Google Data Studio Training Vasai-Virar#Google Data Studio Certification Vasai-Virar#Best Google Data Studio Course Vasai-Virar#Data Studio Classes in Vasai-Virar#Google Data Studio for Beginners Vasai-Virar#Advanced Google Data Studio Vasai-Virar#Google Data Studio Workshop Vasai-Virar#Professional Google Data Studio Course Vasai-Virar#Google Data Studio Skills Vasai-Virar#Data Analysis with Google Data Studio Vasai-Virar#Google Data Studio Training Institute Vasai-Virar#Interactive Data Reports Vasai-Virar#Long-Tail Keywords:#Google Data Studio Course with Certification in Vasai-Virar#How to use Google Data Studio for Data Visualization Vasai-Virar#Best Training for Google Data Studio in Vasai-Virar#Top Google Data Studio Classes in Vasai-Virar#Affordable Google Data Studio Course in Vasai-Virar#Google Data Studio Course for Professionals Vasai-Virar#Enhance Data Skills with Google Data Studio in Vasai-Virar
0 notes
Text
RPA Developer Salary, Roles & Responsibilities - Arya College
What Is Robotic Process Automation
Robotic process automation (RPA), also known as software robotics, uses automation technologies to mimic back-office tasks of human workers, such as extracting data, filling in forms, moving files, et cetera and It combines APIs and user interface (UI) interactions to integrate and perform repetitive tasks between enterprise and productivity applications. This form of automation uses rule-based software to perform business process activities at a high volume, freeing up human resources to prioritize more complex tasks also RPA enables CIOs and other decision-makers to accelerate their digital transformation efforts and generate a higher return on investment (ROI) from their staff.
RPA Development
A software technology that makes it easy to build, deploy, and manage software robots that emulate human actions interacting with digital systems and software. Whether you are a graduate student, a working professional, or a business owner, this guide will provide you with valuable insights and upskilling advice to embark on a successful career in RPA development
RPA Development Process
Step 1: Obtain a degree in computer science or a related field. A strong foundation in computer science concepts is essential for understanding the principles behind RPA development. Step 2: Develop an algorithmic way of thinking and understanding through practice and continuous learning. Solveâcoding challenges, participate inâprogramming competitions, and work on personal programming projects to enhance problem-solving abilities. Step 3: Gain knowledge and hands-on experience with RPA tools through training programs and online courses. Familiarise yourself withâpopular RPA platforms like UiPath, Automation Anywhere, and Blue These platforms offer comprehensive training programs that cover the fundamentals of RPA development. Step 4: Build a well-designed RPA Developer resume highlighting your relevant skills and experience. Include any internships or projects where you have worked on RPA development. Highlight your programming language proficiency and problem-solving abilities.
RPA training programs can be highly beneficial as they provide practical knowledge and industry recognition. These programs often include hands-on exercises and real-world case studies, allowing you to apply your skills practically. Additionally, they provide an avenue for networking with professionals in the field and staying updated with the latest trends and technologies
Robotic Process Automation Syllabus
Module: 1 â Robotic Automation Process Studio
Running a Process
Basic Skills
Process Validation
Decision Stage
Calculation Stage
Data Items
Module: 2 â Process Flow
Decisions
Circular Paths
Controlling Play
Set Next Stage
Breakpoints
Collections and Loops
Layers of Logic
Pages for Organization
Module: 3 â Inputs and outputs
Input Parameters
Stepping and Pages
Data Item Visibility
Data Types
Output Parameters
Start-up Parameters
Control Room
Process Outputs
Module: 4 â Business Objects
Object Studio
Business Objects
BLUE PRISM CONTENT
Action Stage
Inputs and Outputs
The Process Layer
Module: 5 â Object Studio
Creating a Business Object
Application Modeler
Spying Elements, Attributes
Attribute Selection, Launch, Wait, Timeouts, Terminate
Write, Press, Attach and Detach, Read, Actions
Action Inputs and Outputs, Data Items as Inputs
Module: 6 â Error Management
Exception Handling
Recover and Resume
Throwing Exceptions
Preserving the Current Exception
Exception Bubbling
Exception Blocks
Exception Handling in Practice
Module: 7 â Case Management
Queue Items Commercial in Confidence
BLUE PRISM CONTENT
Work Queue Configuration
Defer, Attempts, Pause and Resume
Filters Reports
Module: 8 â Additional Features
Safe Stop, Collection Actions
Choice Stage, Logging, Log Viewer, System Manager
Process/Business Object Grouping
Process and Object References, Export and Import
Module: 9 â Consolidation Exercise
Order System Process
Consolidation Exercise Checklist
Submitting Your Completed Solution
Read Full Blog : Arya College
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to findâŚ
View On WordPress
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to findâŚ
View On WordPress
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to findâŚ
View On WordPress
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to findâŚ
View On WordPress
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to findâŚ
View On WordPress
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to findâŚ
View On WordPress
0 notes
Text
Enhancing Your Data Studio Report with Calculated Fields
Enhancing Your Data Studio Report with Calculated Fields
If inconsistent naming conventions, frustration with retroactive data, or custom organizational acronyms are keeping you up at night, calculated fields in Google Data Studio may be just the solution youâre looking for!
Have you ever reconfigured a dimension in Google Analytics (perhaps a content group or an event category), only to find that your changes werenât applied retroactively? Maybe youâve inherited a website and uncovered poorly formatted UTM parameters. Perhaps youâre interested in ratios instead of exact numeric values, but you canât find exactly what you need within the GA interface. When youâre looking to clean up your reporting and make things easier to understand, think Google Data Studio.
What is Google Data Studio?
What is Google Data Studio, you ask? If you havenât read our previous post on visualizing your data with Google Data Studio, head over there first to learn the ins and outs of the tool â but please do come back. Weâll be reviewing calculated fields, custom filters, and providing a few reporting examples and scenarios that we hope will be relevant for your organization!
What are Calculated Fields?
A calculated field within Data Studio is a user-generated dimension or metric. Calculated fields should be used when you are unable to answer questions with the available fields associated with the data set. Why? Creating a calculated field is essentially the process of developing new metrics or dimensions from your existing data source.
Calculated fields come in a few basic forms, including:
Arithmetic: addition, subtraction, multiplication and division
Mathematical Formulas: Examples include REGEXP_MATCH(), POWER(), MIN(), MAX(), SUM()
Data Transformation: Convert your data to text, numerical values, or even dates. Use functions like LOWER() to standardize text. Re-name fields according to company acronyms, or add unique identifiers.
Logical Comparisons: Utilize branching, IF/ELSE or CASE/WHEN statements within your data to apply categorical connections
Why Should I Use Calculated Fields?
Calculated fields help you answer custom strategic questions for which existing dimensions simply arenât meant.
Using the logic outlined above, letâs pick an example. You may be interested in understanding the ratio of New Users to Existing Users. Perhaps you want to understand how this ratio has changed over time by comparing the percentage to the previous year. Guess what, a calculated field can help you here! While this may not exist within your available data fields, you have all the components that you need.
The best part? Anything we create using the calculated fields tools within Data Studio can be inserted into our visualizations just like the pre-populated dimensions or metrics. That means that in most scenarios, a calculated field can interact with a standard date dimension, session metric, or goal conversion completion, giving you more control over how your data is reported and presented. You can even use a calculated field within another calculated field.
Now that weâve covered a bit about why calculated fields are so awesome, letâs connect to our data set and work on the New User Ratio example outlined above.
Prepping the Data
After you hook up your data source to the Data Studio report (weâll be using data from Google Analytics in this blog post, but you can use the formulas weâll walk through on any imported data), youâll be given immediate access to the available fields within your Analytics view.
To see whatâs available, weâll need to insert a chart type or table using the top navigation bar. This will essentially ping the dataset and allow you to explore existing fields. In this example, we will insert a table.
Once weâve drawn the table or graph, a right-hand navigation side bar containing two tabs (Data and Style) will appear with pre-populated dimensions and metrics. Take a few moments to explore whatâs already available in the tool prior to creating any custom calculated fields. Weâll need to have a few initial metrics handy for manipulation, otherwise, we will run out of metrics or dimensions to calculate!
Once youâre ready, click on the blue âCreate New Fieldâ button located in the bottom right-hand corner of the interface.
Example: Calculated Metrics Using Arithmetic
Back to the New Users Ratio comparison problem that we posed above. After weâve clicked the âCreate New Fieldâ button, a console will appear at the bottom of the screen prompting us for the Field Name, Field ID, and Formula. It is important to name these fields in a manner that makes sense to you and your organization so that your team will be able to find the fields for later use. Additionally, we recommend including portions of the data transformation within the name if possible.
In this case, we are building a ratio from the New User field, so Iâve named the field âNew User Ratio.â Iâve also updated the Field ID to match my new naming conventions.
Creating the Calculated Metric
Okay, so hereâs the fun part: that formula console! This section of the console is where we will be placing our logic. For this first example, weâre going to simply use the already existing âNew Usersâ metric, and divide by total âUsers.â Hereâs a screenshot of this magic:
Click the blue save button and navigate back to the main canvas.
Using the Metric Within a Visualization
Select your chart or table again if the visualization is no longer selected. This should prompt the right hand navigation to appear once more. Next, weâll search for the newly created metric in the available fields âtype to searchâ box. Weâll simply select the âNew User Ratioâ metric, and drag the value to the left hand of the navigation pane. You should see something similar to the representation below when youâve completed this step:
Voila! Now we have the ratio of new users who have visited our site, grouped by default channel.
But wait, your leadership team wants to see this as a percentage? No problem. Just click on the â123â next to the New User Ratio metric, and select the Type âPercent.â
One more thing: to compare this metric to the previous period or year, navigate to the âDefault Date Rangeâ section of the right-hand pane, and select âPrevious Periodâ or âPrevious Yearâ (depending on your analysis objectives). This will create a new column that will visualize the difference in sessions and the new user ratio weâve just created compared to the selected period. Pretty nifty, right?
If youâve followed along with these steps, your table should look something like this:
If you made it this far, congratulations! Youâve just successfully created your first calculated field! Ready for something a little more advanced? Letâs dive into formulas and logical comparisons.
EXAMPLE: Calculated Dimensions Using CASE()
The CASE statement is one of the most powerful operators because it can be used to manipulate both dimensions and metrics. Example scenarios where CASE statements may be useful include grouping a sales territory into a new region, creating page path or event funnels, and even recreating content groupings. The best part? Unlike in Google Analytics, these new dimensions or metrics can be applied to retroactive data â yippee!
Developing a Purchasing Funnel
Letâs walk through a quick example utilizing page paths, where each page path level represents a portion of signing up for a good or service.
In this example, our leadership team is interested in determining how many of our users purchased a ticket for our concert series. But they donât simply what the numerical answer, because that doesnât allow for any strategic reaction! They are also interested in understanding where users start to drop off in the purchasing process so that the company can adjust their processes & website to increase purchases.
Why Do We Need a Calculated Field Here?
We could simply use a filter within Data Studio, and select only the page paths that we are interested in. However, that wonât help the recipient of the report understand the purchasing journey. But why? Because Data Studio constricts our sorting options â within the tool, we are able to:
Sort by ascending or descending metric
Sort alphabetically
Neither of these options will help paint the picture of the purchasing funnel with our current data. The solution? You guessed it â a calculated field.
To do this, weâll group the pages that a user has visited based on our understanding of the purchase process. Weâll also rename the fields, and order the fields using a numerical index so that the visualization makes sense to our leadership team.
The CASE() Syntax
Following the same steps as we used with the New Users Ratio example above, weâll make our way back to the calculated field console. Weâve named our calculated field âTicket Purchase Funnelâ, and began our analysis of the CASE() formula:
CASE WHEN Page path level 3 = "/Step1/" THEN "1 Created Profile - 20%" WHEN Page path level 3 = "/Step2/" THEN "2 Select Concert - 40%" WHEN Page path level 3 = "/Step3/" THEN "3 Select Seat(s) - 60%" WHEN Page path level 3 = "/Step4/" THEN "4 Add On A Parking Pass - 80%" WHEN Page path level 3 = "/Step5/" THEN "5 Submit Payment - 95%" WHEN Page path level 3 = "/Complete/" THEN "6 Ticket Purchased - 100%" ELSE "Other" END
Note: you will have to understand the page path and page path levels associated with the purchasing steps to be able to successfully utilize the CASE() formula in this example. If you do not have this information handy, go grab it! One way to do so is to walk through the purchasing path on your own website and jot down the unique pages along the way.
Hereâs how this expression looks in our console:
When youâre satisfied with your logic. Click âSaveâ.
A Few Notes on Syntax
The CASE() statement uses a blanket ELSE() clause which applies a default result if the page path isnât located within your conditions. A CASE Statement can only have 1 ELSE clause â so try to capture the scenarios you need utilizing the WHEN clause.
Additionally, CASE statements work with a variety of operators, including AND, OR, equal to =, not equal to !=, greater than >, greater than or equal to >=, less than <, less than or equal to <=. You arenât limited to what weâve shown above, so get creative!
Visualizing our Purchasing Funnel
To see what beauty and wonder that weâve just created with a few simple commands, weâll insert a bar chart into our canvas. To do this, weâve created a new bar chart from the top navigation pane. Once the chart is highlighted on our canvas, we search for the newly created dimension âTicket Purchase Funnel,â and move the field into the chart dimension section.
Next, we select our metric of interest, and any other data formats weâd like. Moving on to the âStyleâ tab, we choose the number of bars that we wish to see by selecting a numerical value from the âBarsâ drop down. In this case, Iâm not interested in âOtherâ page paths, so Iâve selected 6.
Finally, we sort the chart by Ascending âTicket Purchase Funnel.â Â If youâve followed along with the steps outlined above you should see a similar result as the purchasing funnel below:
Why is this Useful?
By working with a calculated field, weâve transformed our data into actionable insights! How? Individuals within your company who do not have a working knowledge of your website structure will be able to immediately see the key points: 870 sessions resulted in a purchased ticket or just over 14% of those who create a profile purchase a ticket to our show. Theyâll also be able to understand the metrics themselves, because âSelect Seat(s) â 60%â is a lot more informative than â/Step3/â!
Now that weâve formatted the data, we can also see that after a visitor creates a profile, thereâs a significant drop off for people who end up selecting a concert. Perhaps we may need to adjust the interface to make this more seamless for our customers. Or, perhaps the profile creation process is so grueling, people quit halfway!
Remember: data is only as useful as the insights we generate from it, so make sure that you are using calculated fields to get you to those answers!
One More Example: The Content Group!
Content Groupings are a feature in Google Analytics that allows you to classify your pages into groups or categories. These can be implemented directly in Google Analytics using Regular Expressions or general logical commands. They are a great tool for reporting, and we at LunaMetrics love them because thereâs no code or GTM required.
My colleagues have written about the wonders of content groups before. If you are interested in learning more, peruse the following resources:
Classify your Blog Posts in Analytics Using Content
Groupings Content Groupings vs Custom Dimensions
Making URLs Better Through Content Grouping in Google Analytics
BUT, as we mentioned before, Content Groupings arenât retroactive. So if you want to report on last monthâs blog pages using internally developed Content Groupings, but you didnât implement the Groupings until yesterday, youâre out of luck⌠or are you?
This is where Calculated fields can come into play!
This example is relatively similar to our last task for understanding the ticket purchasing funnel, so weâll skip right to the code.
Recreating Content Groupings for Sections of Our Site
In this scenario, weâll stick with the CASE() statement, but weâll add the REGEXP_MATCH formula, which allows us to group numerous page paths together using Regular Expressions.
Letâs assume that Iâve already grouped our Homepage, About pages, FAQ and Contact pages, Blog Pages, Press, Profile Login Pages, and Ticket Purchase pages into Content Groups within Google Analytics. My goal is to replicate these content groups within Data Studio so that Iâm able to look at historical data in the same manner.
Using the same logic that Iâve already built, I can recreate the content groupings in the following statement:
CASE WHEN REGEXP_MATCH(Page, "(^/$|/home$)") THEN "Homepage" WHEN REGEXP_MATCH(Page, "(/contact.*|/faq.*)") THEN "Contact" WHEN REGEXP_MATCH(Page, "/gifts.*") THEN "Blog" WHEN REGEXP_MATCH(Page, "(/about.*|/jobs.*)") THEN "About" WHEN REGEXP_MATCH(Page, "(^/login/profile|/login$|/login/home)") THEN "Profile Login" WHEN REGEXP_MATCH(Page, "(.*/step.*|/complete/)") THEN "Ticket Purchase Pages" WHEN REGEXP_MATCH(Page, "(/press.*)") THEN "Press Releases" ELSE "Other" END
Note*: If you havenât created content groups within GA, thatâs fine too! Because Data Studio is not connected to the reporting functionality in GA, this formula works either way.
Visualizing our Content Groups
Letâs put our newly updated content groups into a pie chart to get a quick visualization of our data. The dimension will be âContent Groups Main Pagesâ and the Metric will be âSessions.â
Just like we did in our ticket purchasing example, Iâm going to filter out âOtherâ page paths because Iâm just not that interested in them. This time, however, weâre going to use a custom filter.
We can create a custom filter by clicking the âAdd Filterâ blue link at the bottom of the right hand pane. The filter can be reused in other charts as well, so weâll need to remember to be consistent in our naming conventions. Since Iâm excluding âOtherâ from my content group, Iâve named the filter âExclude Other From Content Groupsâ saved the changes.
Now for the fun part â letâs check out our pie chart and take a look at what we can interpret from our Content Groups:
With this visualization, we are able to determine that many of our visits are heading to the contact pages. Why might that be? Maybe our contact page holds valuable information that should be moved elsewhere to make it easier for the user to access. What might this mean? Maybe we really do need to work on our ticket sales user interface! We also can see that our Press Release page isnât getting much love from our viewers. Letâs change that by writing about more relevant content!
Again, make sure that you are creating calculated fields that help answer questions, provoke new questions, and drive insights.
Letâs Recap
Calculated fields are great! But they can be a little treacherous too. Be sure to validate your data within Google Analytics, and ensure that your formulas are working as you expect!
In addition to what weâve talked about earlier, keep these tidbits in mind when working with calculated fields:
Calculated fields can be applied to retroactive GA data (woo!)
Calculated fields can be utilized WITHIN additional calculated fields (yay!)
You can apply filters to calculated fields (awesome!)
Calculated fields can allow you to rename and group poorly named dimensions (fist pump!)
You canât mix dimensions and metrics in WHEN conditions (darn!)
And so, calculated fields are another way to make the data more informative and insightful when using Data Studio.
Weâve merely scratched the surface on the possible options with calculated fields in this post, so get out there and calculate! If you have any tips or tricks that you stumble across along the way, feel free to post in the comments for others to learn from!
https://ift.tt/2HQ1d8G
0 notes