SlideShare a Scribd company logo
1 of 11
Download to read offline
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

What's hot

“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...
“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...
“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...DevClub_lv
 
“Controlling of messages flow in Microservices architecture” by Andris Lubans...
“Controlling of messages flow in Microservices architecture” by Andris Lubans...“Controlling of messages flow in Microservices architecture” by Andris Lubans...
“Controlling of messages flow in Microservices architecture” by Andris Lubans...DevClub_lv
 
When and Where to Embed Business Intelligence
When and Where to Embed Business IntelligenceWhen and Where to Embed Business Intelligence
When and Where to Embed Business IntelligenceLooker
 
Frontend Architecture and Data Visualization
Frontend Architecture and Data VisualizationFrontend Architecture and Data Visualization
Frontend Architecture and Data VisualizationAltocloud
 
Tableau Conference 2018: Binging on Data - Enabling Analytics at Netflix
Tableau Conference 2018: Binging on Data - Enabling Analytics at NetflixTableau Conference 2018: Binging on Data - Enabling Analytics at Netflix
Tableau Conference 2018: Binging on Data - Enabling Analytics at NetflixBlake Irvine
 
Department Budget and Resource Planning Proposal
Department Budget and Resource Planning ProposalDepartment Budget and Resource Planning Proposal
Department Budget and Resource Planning ProposalMike Wienold
 
Science base usage analysis - AGU2016 - in21d08
Science base usage analysis - AGU2016 - in21d08Science base usage analysis - AGU2016 - in21d08
Science base usage analysis - AGU2016 - in21d08Sky Bristol
 
Join 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action HubJoin 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action HubLooker
 
Taming the QIX Engine with Reactive Programming
Taming the QIX Engine with Reactive ProgrammingTaming the QIX Engine with Reactive Programming
Taming the QIX Engine with Reactive ProgrammingSperos Kokenes
 
Recommender System Using AZURE ML
Recommender System Using AZURE MLRecommender System Using AZURE ML
Recommender System Using AZURE MLDev Raj Gautam
 
Riding the big data wave with Excel and Power BI - SMBNation 2015
Riding the big data wave with Excel and Power BI - SMBNation 2015Riding the big data wave with Excel and Power BI - SMBNation 2015
Riding the big data wave with Excel and Power BI - SMBNation 2015Robert Crane
 
SqlDay 2018 - Brief introduction into SQL Server Execution Plans
SqlDay 2018 - Brief introduction into SQL Server Execution PlansSqlDay 2018 - Brief introduction into SQL Server Execution Plans
SqlDay 2018 - Brief introduction into SQL Server Execution PlansMarek Maśko
 
Geek Sync | New Features in SQL Server That Will Change the Way You Tune
Geek Sync | New Features in SQL Server That Will Change the Way You TuneGeek Sync | New Features in SQL Server That Will Change the Way You Tune
Geek Sync | New Features in SQL Server That Will Change the Way You TuneIDERA Software
 
Principles of System Observability
Principles of System Observability Principles of System Observability
Principles of System Observability Janis Orlovs
 
Statistis, Row Counts, Execution Plans and Query Tuning
Statistis, Row Counts, Execution Plans and Query TuningStatistis, Row Counts, Execution Plans and Query Tuning
Statistis, Row Counts, Execution Plans and Query TuningGrant Fritchey
 
Big data & analytics forum (yubin evh)
Big data & analytics forum (yubin   evh)Big data & analytics forum (yubin   evh)
Big data & analytics forum (yubin evh)Yubin Park
 

What's hot (19)

“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...
“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...
“Machine Learning in Production + Case Studies” by Dmitrijs Lvovs from Epista...
 
Business Intelligence is Not an Oxymoron
Business Intelligence is Not an OxymoronBusiness Intelligence is Not an Oxymoron
Business Intelligence is Not an Oxymoron
 
“Controlling of messages flow in Microservices architecture” by Andris Lubans...
“Controlling of messages flow in Microservices architecture” by Andris Lubans...“Controlling of messages flow in Microservices architecture” by Andris Lubans...
“Controlling of messages flow in Microservices architecture” by Andris Lubans...
 
ALTERYX TOOL
ALTERYX TOOLALTERYX TOOL
ALTERYX TOOL
 
When and Where to Embed Business Intelligence
When and Where to Embed Business IntelligenceWhen and Where to Embed Business Intelligence
When and Where to Embed Business Intelligence
 
Frontend Architecture and Data Visualization
Frontend Architecture and Data VisualizationFrontend Architecture and Data Visualization
Frontend Architecture and Data Visualization
 
Tableau Conference 2018: Binging on Data - Enabling Analytics at Netflix
Tableau Conference 2018: Binging on Data - Enabling Analytics at NetflixTableau Conference 2018: Binging on Data - Enabling Analytics at Netflix
Tableau Conference 2018: Binging on Data - Enabling Analytics at Netflix
 
Department Budget and Resource Planning Proposal
Department Budget and Resource Planning ProposalDepartment Budget and Resource Planning Proposal
Department Budget and Resource Planning Proposal
 
Science base usage analysis - AGU2016 - in21d08
Science base usage analysis - AGU2016 - in21d08Science base usage analysis - AGU2016 - in21d08
Science base usage analysis - AGU2016 - in21d08
 
Join 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action HubJoin 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action Hub
 
Taming the QIX Engine with Reactive Programming
Taming the QIX Engine with Reactive ProgrammingTaming the QIX Engine with Reactive Programming
Taming the QIX Engine with Reactive Programming
 
Recommender System Using AZURE ML
Recommender System Using AZURE MLRecommender System Using AZURE ML
Recommender System Using AZURE ML
 
Big data technology
Big data technology Big data technology
Big data technology
 
Riding the big data wave with Excel and Power BI - SMBNation 2015
Riding the big data wave with Excel and Power BI - SMBNation 2015Riding the big data wave with Excel and Power BI - SMBNation 2015
Riding the big data wave with Excel and Power BI - SMBNation 2015
 
SqlDay 2018 - Brief introduction into SQL Server Execution Plans
SqlDay 2018 - Brief introduction into SQL Server Execution PlansSqlDay 2018 - Brief introduction into SQL Server Execution Plans
SqlDay 2018 - Brief introduction into SQL Server Execution Plans
 
Geek Sync | New Features in SQL Server That Will Change the Way You Tune
Geek Sync | New Features in SQL Server That Will Change the Way You TuneGeek Sync | New Features in SQL Server That Will Change the Way You Tune
Geek Sync | New Features in SQL Server That Will Change the Way You Tune
 
Principles of System Observability
Principles of System Observability Principles of System Observability
Principles of System Observability
 
Statistis, Row Counts, Execution Plans and Query Tuning
Statistis, Row Counts, Execution Plans and Query TuningStatistis, Row Counts, Execution Plans and Query Tuning
Statistis, Row Counts, Execution Plans and Query Tuning
 
Big data & analytics forum (yubin evh)
Big data & analytics forum (yubin   evh)Big data & analytics forum (yubin   evh)
Big data & analytics forum (yubin evh)
 

Similar to Join 2017_Deep Dive_Table Calculations 101

Alm with tfs 2013
Alm with tfs 2013Alm with tfs 2013
Alm with tfs 2013MSDEVMTL
 
Work Unit Analysis Tool
Work Unit Analysis ToolWork Unit Analysis Tool
Work Unit Analysis ToolHPCC Systems
 
An Introduction To Software Development - Final Review
An Introduction To Software Development - Final ReviewAn Introduction To Software Development - Final Review
An Introduction To Software Development - Final ReviewBlue Elephant Consulting
 
Learn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in DelhiLearn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in Delhiibinstitute0
 
Refactoring Legacy Code - true story
Refactoring Legacy Code - true storyRefactoring Legacy Code - true story
Refactoring Legacy Code - true storyAki Salmi
 
Computational thinking
Computational thinkingComputational thinking
Computational thinkingr123457
 
Online Advance Excel & VBA Training in India
 Online Advance Excel & VBA Training in India Online Advance Excel & VBA Training in India
Online Advance Excel & VBA Training in Indiaibinstitute0
 
Lightening Talk - PostgreSQL Worst Practices
Lightening Talk - PostgreSQL Worst PracticesLightening Talk - PostgreSQL Worst Practices
Lightening Talk - PostgreSQL Worst PracticesPGConf APAC
 
Algorithm and C code related to data structure
Algorithm and C code related to data structureAlgorithm and C code related to data structure
Algorithm and C code related to data structureSelf-Employed
 
Generating unit tests based on user logs
Generating unit tests based on user logsGenerating unit tests based on user logs
Generating unit tests based on user logsRick Wicker
 
Real life forms to adf
Real life forms to adfReal life forms to adf
Real life forms to adfLuc Bors
 
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1AsepRahmatullah2
 
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...Simplilearn
 
Unit Testing Best Practices
Unit Testing Best PracticesUnit Testing Best Practices
Unit Testing Best PracticesTomaš Maconko
 
Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...SPC Adriatics
 

Similar to Join 2017_Deep Dive_Table Calculations 101 (20)

Alm with tfs 2013
Alm with tfs 2013Alm with tfs 2013
Alm with tfs 2013
 
Work Unit Analysis Tool
Work Unit Analysis ToolWork Unit Analysis Tool
Work Unit Analysis Tool
 
Design p atterns
Design p atternsDesign p atterns
Design p atterns
 
Scrum toufiq
Scrum toufiqScrum toufiq
Scrum toufiq
 
Lecture 24
Lecture 24Lecture 24
Lecture 24
 
An Introduction To Software Development - Final Review
An Introduction To Software Development - Final ReviewAn Introduction To Software Development - Final Review
An Introduction To Software Development - Final Review
 
Learn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in DelhiLearn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in Delhi
 
Refactoring Legacy Code - true story
Refactoring Legacy Code - true storyRefactoring Legacy Code - true story
Refactoring Legacy Code - true story
 
Computational thinking
Computational thinkingComputational thinking
Computational thinking
 
Online Advance Excel & VBA Training in India
 Online Advance Excel & VBA Training in India Online Advance Excel & VBA Training in India
Online Advance Excel & VBA Training in India
 
Lightening Talk - PostgreSQL Worst Practices
Lightening Talk - PostgreSQL Worst PracticesLightening Talk - PostgreSQL Worst Practices
Lightening Talk - PostgreSQL Worst Practices
 
Algorithm and C code related to data structure
Algorithm and C code related to data structureAlgorithm and C code related to data structure
Algorithm and C code related to data structure
 
Generating unit tests based on user logs
Generating unit tests based on user logsGenerating unit tests based on user logs
Generating unit tests based on user logs
 
Real life forms to adf
Real life forms to adfReal life forms to adf
Real life forms to adf
 
Real life forms to adf
Real life forms to adfReal life forms to adf
Real life forms to adf
 
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1
File 2013 09-27-07 56 18_catur_supriyanto,_m.cs__presentation1
 
Eurosport's Kodakademi #2
Eurosport's Kodakademi #2Eurosport's Kodakademi #2
Eurosport's Kodakademi #2
 
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...
Project Planning | Project Plan In Excel With Gantt Chart | Project Managemen...
 
Unit Testing Best Practices
Unit Testing Best PracticesUnit Testing Best Practices
Unit Testing Best Practices
 
Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...
 

More from Looker

Join 2017_Deep Dive_To Use or Not Use PDT's
Join 2017_Deep Dive_To Use or Not Use PDT'sJoin 2017_Deep Dive_To Use or Not Use PDT's
Join 2017_Deep Dive_To Use or Not Use PDT'sLooker
 
Join 2017_Deep Dive_Smart Caching
Join 2017_Deep Dive_Smart CachingJoin 2017_Deep Dive_Smart Caching
Join 2017_Deep Dive_Smart CachingLooker
 
Join 2017_Deep Dive_Sessionization
Join 2017_Deep Dive_SessionizationJoin 2017_Deep Dive_Sessionization
Join 2017_Deep Dive_SessionizationLooker
 
Join 2017_Deep Dive_Redshift Optimization
Join 2017_Deep Dive_Redshift OptimizationJoin 2017_Deep Dive_Redshift Optimization
Join 2017_Deep Dive_Redshift OptimizationLooker
 
Join 2017_Deep Dive_Integrating Looker with R and Python
Join 2017_Deep Dive_Integrating Looker with R and PythonJoin 2017_Deep Dive_Integrating Looker with R and Python
Join 2017_Deep Dive_Integrating Looker with R and PythonLooker
 
Join 2017_Deep Dive_Customer Retention
Join 2017_Deep Dive_Customer Retention Join 2017_Deep Dive_Customer Retention
Join 2017_Deep Dive_Customer Retention Looker
 
Join2017_Deep Dive_AWS Operations
Join2017_Deep Dive_AWS OperationsJoin2017_Deep Dive_AWS Operations
Join2017_Deep Dive_AWS OperationsLooker
 
Winning the 3rd Wave of BI
Winning the 3rd Wave of BIWinning the 3rd Wave of BI
Winning the 3rd Wave of BILooker
 
Power to the People: A Stack to Empower Every User to Make Data-Driven Decisions
Power to the People: A Stack to Empower Every User to Make Data-Driven DecisionsPower to the People: A Stack to Empower Every User to Make Data-Driven Decisions
Power to the People: A Stack to Empower Every User to Make Data-Driven DecisionsLooker
 
Wisdom of Crowds Webinar Deck
Wisdom of Crowds Webinar DeckWisdom of Crowds Webinar Deck
Wisdom of Crowds Webinar DeckLooker
 
How the economist with cloud BI and Looker have improved data-driven decision...
How the economist with cloud BI and Looker have improved data-driven decision...How the economist with cloud BI and Looker have improved data-driven decision...
How the economist with cloud BI and Looker have improved data-driven decision...Looker
 
Frank Bien Opening Keynote - Join 2016
Frank Bien Opening Keynote - Join 2016Frank Bien Opening Keynote - Join 2016
Frank Bien Opening Keynote - Join 2016Looker
 
Frank Bien Opening Keynote - Join 2016
Frank Bien Opening Keynote - Join 2016Frank Bien Opening Keynote - Join 2016
Frank Bien Opening Keynote - Join 2016Looker
 
Meet Looker 4
Meet Looker 4Meet Looker 4
Meet Looker 4Looker
 
Winning with Data
Winning with Data Winning with Data
Winning with Data Looker
 
Data Stack Considerations: Build vs. Buy at Tout
Data Stack Considerations: Build vs. Buy at ToutData Stack Considerations: Build vs. Buy at Tout
Data Stack Considerations: Build vs. Buy at ToutLooker
 
Embedding Data & Analytics With Looker
Embedding Data & Analytics With LookerEmbedding Data & Analytics With Looker
Embedding Data & Analytics With LookerLooker
 
The Three Pillars of Customer Success Analytics
The Three Pillars of Customer Success AnalyticsThe Three Pillars of Customer Success Analytics
The Three Pillars of Customer Success AnalyticsLooker
 
The Power of Smart Counting at The RealReal
The Power of Smart Counting at The RealRealThe Power of Smart Counting at The RealReal
The Power of Smart Counting at The RealRealLooker
 
Data Democracy: Hadoop + Redshift
Data Democracy: Hadoop + RedshiftData Democracy: Hadoop + Redshift
Data Democracy: Hadoop + RedshiftLooker
 

More from Looker (20)

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

Recently uploaded

(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 

Recently uploaded (20)

(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 

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