SlideShare a Scribd company logo
1
Table
Calculations 101
Nicole Beyer
Manager
Department of Customer Love
• What is a Table Calc?
• Best Practices
• How to create a Table Calc
• Mathematical functions
• String Functions
• Date Functions
2
Agenda
• A way to create columns on the fly
• Based on Looker Expressions
(lexp) rather than LookML
• Anyone can make them
• Always based on the fields in an
existing report
3
Overview
• You want to perform a one off
calculation
• You want to do something that
would be really hard in SQL, like
window functions
4
Best Practices
• Let’s calculate our total number of
new male and female users per
week starting here
• We will use only basic + operator
and no formatting
• Now say we want to know what
percentage of our new users are
female
• We will reference our previous
table calc and use formatting
• Final product
5
My first table calc
Mathematical Functions
• Can be per row (round, rand) or aggregations (sum, max) which mean one result for all
rows
• Let’s use rand which operates per row to create a report which surfaces 5 random order
items to review
• Start here
• Common pitfall: cannot sort on reports that have hit the row limit
• Solution: Increase the limit or filter the results
• Tip: Hide from visualization
• Final product
Mathematical Functions Continued
• Let’s use table calcs to take the aggregate of an aggregate
• Say we want to know the average number of items we have delivered in the past 4
weeks
• Start here with the count per week
• Common pitfall: aggregations will only aggregate what is being shown on the report
• Solution: limit the result set or do the calculation in LookML
• Final product
• Allows you to manipulate strings
• Similar to functions allowed in SQL
• No regex at the moment
• My favorite is contains
• Let’s check this explore to see which
product names contain the word
‘jean’
• Final product
8
String Functions
• You can add and subtract dates!
• Similar to functions allowed in SQL
but dialect agnostic (so nice!)
• Let’s use diff_days to find the time
that it takes for an order item to be
delivered starting from this explore
• Final product
9
Date Functions
• Take advantage of autocomplete!
• Cannot filter
• Can sort if not hitting the row limit
• Will be grouped by any dimensions
used in the report
• Check out the docs!
10
Tips and Tricks
Join 2017_Deep Dive_Table Calculations 101

More Related Content

PDF
Join 2017_Deep Dive_Table Calculations 201
PPTX
Ikanow oanyc summit
PDF
Join 2017_Deep Dive_Workflows with Zapier
PDF
The A.I. Avenger Team - The 7 roles that you need
PPTX
Big Data Berlin v8.0 Stream Processing with Apache Apex
PPTX
Nicola Pagni - Anomaly Detection in Elasticsearch
PPTX
“How to Succeed with Machine Learning” by Arturs Valujevs from Intrum Global ...
PPTX
“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...
Join 2017_Deep Dive_Table Calculations 201
Ikanow oanyc summit
Join 2017_Deep Dive_Workflows with Zapier
The A.I. Avenger Team - The 7 roles that you need
Big Data Berlin v8.0 Stream Processing with Apache Apex
Nicola Pagni - Anomaly Detection in Elasticsearch
“How to Succeed with Machine Learning” by Arturs Valujevs from Intrum Global ...
“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...

What's hot (17)

PPTX
Business Intelligence is Not an Oxymoron
PPTX
“Controlling of messages flow in Microservices architecture” by Andris Lubans...
PPTX
ALTERYX TOOL
PPTX
When and Where to Embed Business Intelligence
PPTX
Frontend Architecture and Data Visualization
PDF
Tableau Conference 2018: Binging on Data - Enabling Analytics at Netflix
PPTX
Department Budget and Resource Planning Proposal
PPTX
Science base usage analysis - AGU2016 - in21d08
PDF
Join 2017 - Deep Dive - Action Hub
PDF
Taming the QIX Engine with Reactive Programming
PPTX
Recommender System Using AZURE ML
PDF
Big data technology
PDF
Riding the big data wave with Excel and Power BI - SMBNation 2015
PDF
SqlDay 2018 - Brief introduction into SQL Server Execution Plans
PPTX
Geek Sync | New Features in SQL Server That Will Change the Way You Tune
PDF
Principles of System Observability
PDF
Big data & analytics forum (yubin evh)
Business Intelligence is Not an Oxymoron
“Controlling of messages flow in Microservices architecture” by Andris Lubans...
ALTERYX TOOL
When and Where to Embed Business Intelligence
Frontend Architecture and Data Visualization
Tableau Conference 2018: Binging on Data - Enabling Analytics at Netflix
Department Budget and Resource Planning Proposal
Science base usage analysis - AGU2016 - in21d08
Join 2017 - Deep Dive - Action Hub
Taming the QIX Engine with Reactive Programming
Recommender System Using AZURE ML
Big data technology
Riding the big data wave with Excel and Power BI - SMBNation 2015
SqlDay 2018 - Brief introduction into SQL Server Execution Plans
Geek Sync | New Features in SQL Server That Will Change the Way You Tune
Principles of System Observability
Big data & analytics forum (yubin evh)
Ad

Similar to Join 2017_Deep Dive_Table Calculations 101 (20)

PPTX
Alm with tfs 2013
PPTX
Work Unit Analysis Tool
PPTX
Design p atterns
PDF
Scrum toufiq
PDF
An Introduction To Software Development - Final Review
PDF
Chapter-1-Introduction-to-Aglorithms.pdf
PPTX
Learn VBA Training & Advance Excel Courses in Delhi
PPTX
Refactoring Legacy Code - true story
PPTX
Computational thinking
PPTX
problem solving and algorithm development
PDF
Online Advance Excel & VBA Training in India
PDF
Lightening Talk - PostgreSQL Worst Practices
PPTX
Algorithm and C code related to data structure
PPTX
Generating unit tests based on user logs
PDF
Real life forms to adf
PPTX
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1
PPTX
Eurosport's Kodakademi #2
PPTX
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...
PDF
Unit Testing Best Practices
Alm with tfs 2013
Work Unit Analysis Tool
Design p atterns
Scrum toufiq
An Introduction To Software Development - Final Review
Chapter-1-Introduction-to-Aglorithms.pdf
Learn VBA Training & Advance Excel Courses in Delhi
Refactoring Legacy Code - true story
Computational thinking
problem solving and algorithm development
Online Advance Excel & VBA Training in India
Lightening Talk - PostgreSQL Worst Practices
Algorithm and C code related to data structure
Generating unit tests based on user logs
Real life forms to adf
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1
Eurosport's Kodakademi #2
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...
Unit Testing Best Practices
Ad

More from Looker (20)

PDF
Join 2017_Deep Dive_To Use or Not Use PDT's
PDF
Join 2017_Deep Dive_Smart Caching
PDF
Join 2017_Deep Dive_Sessionization
PDF
Join 2017_Deep Dive_Redshift Optimization
PDF
Join 2017_Deep Dive_Integrating Looker with R and Python
PDF
Join 2017_Deep Dive_Customer Retention
PDF
Join2017_Deep Dive_AWS Operations
PPTX
Winning the 3rd Wave of BI
PDF
Power to the People: A Stack to Empower Every User to Make Data-Driven Decisions
PPTX
Wisdom of Crowds Webinar Deck
PPTX
How the economist with cloud BI and Looker have improved data-driven decision...
PPTX
Frank Bien Opening Keynote - Join 2016
PPTX
Frank Bien Opening Keynote - Join 2016
PPTX
Meet Looker 4
PPTX
Winning with Data
PPTX
Data Stack Considerations: Build vs. Buy at Tout
PPTX
Embedding Data & Analytics With Looker
PPTX
The Three Pillars of Customer Success Analytics
PPTX
The Power of Smart Counting at The RealReal
PPTX
Data Democracy: Hadoop + Redshift
Join 2017_Deep Dive_To Use or Not Use PDT's
Join 2017_Deep Dive_Smart Caching
Join 2017_Deep Dive_Sessionization
Join 2017_Deep Dive_Redshift Optimization
Join 2017_Deep Dive_Integrating Looker with R and Python
Join 2017_Deep Dive_Customer Retention
Join2017_Deep Dive_AWS Operations
Winning the 3rd Wave of BI
Power to the People: A Stack to Empower Every User to Make Data-Driven Decisions
Wisdom of Crowds Webinar Deck
How the economist with cloud BI and Looker have improved data-driven decision...
Frank Bien Opening Keynote - Join 2016
Frank Bien Opening Keynote - Join 2016
Meet Looker 4
Winning with Data
Data Stack Considerations: Build vs. Buy at Tout
Embedding Data & Analytics With Looker
The Three Pillars of Customer Success Analytics
The Power of Smart Counting at The RealReal
Data Democracy: Hadoop + Redshift

Recently uploaded (20)

PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
top salesforce developer skills in 2025.pdf
PPTX
Essential Infomation Tech presentation.pptx
PDF
Digital Strategies for Manufacturing Companies
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Wondershare Filmora 15 Crack With Activation Key [2025
wealthsignaloriginal-com-DS-text-... (1).pdf
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Odoo Companies in India – Driving Business Transformation.pdf
CHAPTER 2 - PM Management and IT Context
Which alternative to Crystal Reports is best for small or large businesses.pdf
top salesforce developer skills in 2025.pdf
Essential Infomation Tech presentation.pptx
Digital Strategies for Manufacturing Companies
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
How to Choose the Right IT Partner for Your Business in Malaysia
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Design an Analysis of Algorithms I-SECS-1021-03
Operating system designcfffgfgggggggvggggggggg
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...

Join 2017_Deep Dive_Table Calculations 101

  • 2. • What is a Table Calc? • Best Practices • How to create a Table Calc • Mathematical functions • String Functions • Date Functions 2 Agenda
  • 3. • A way to create columns on the fly • Based on Looker Expressions (lexp) rather than LookML • Anyone can make them • Always based on the fields in an existing report 3 Overview
  • 4. • You want to perform a one off calculation • You want to do something that would be really hard in SQL, like window functions 4 Best Practices
  • 5. • Let’s calculate our total number of new male and female users per week starting here • We will use only basic + operator and no formatting • Now say we want to know what percentage of our new users are female • We will reference our previous table calc and use formatting • Final product 5 My first table calc
  • 6. Mathematical Functions • Can be per row (round, rand) or aggregations (sum, max) which mean one result for all rows • Let’s use rand which operates per row to create a report which surfaces 5 random order items to review • Start here • Common pitfall: cannot sort on reports that have hit the row limit • Solution: Increase the limit or filter the results • Tip: Hide from visualization • Final product
  • 7. Mathematical Functions Continued • Let’s use table calcs to take the aggregate of an aggregate • Say we want to know the average number of items we have delivered in the past 4 weeks • Start here with the count per week • Common pitfall: aggregations will only aggregate what is being shown on the report • Solution: limit the result set or do the calculation in LookML • Final product
  • 8. • Allows you to manipulate strings • Similar to functions allowed in SQL • No regex at the moment • My favorite is contains • Let’s check this explore to see which product names contain the word ‘jean’ • Final product 8 String Functions
  • 9. • You can add and subtract dates! • Similar to functions allowed in SQL but dialect agnostic (so nice!) • Let’s use diff_days to find the time that it takes for an order item to be delivered starting from this explore • Final product 9 Date Functions
  • 10. • Take advantage of autocomplete! • Cannot filter • Can sort if not hitting the row limit • Will be grouped by any dimensions used in the report • Check out the docs! 10 Tips and Tricks