SlideShare a Scribd company logo
1 of 10
Download to read offline
1
Table
Calculations 201
Paola Renteria
Customer Support Analyst
Department of Customer Love
• What is a Table Calc?
• Conditional statements
• Offset functions
• Pivot functions
• Statistical functions
• Questions
2
Agenda
• An easy way for everyone to
create their own calculations on
the fly without the help of an
analyst!
• Based on Looker Expressions
(LExp) rather than LookML
• Can only reference fields included
in the report
• Advanced functions include
looking at row-over-row data,
pivot data, conditional statements,
etc.
3
Overview
We are an Ecommerce company
using a data set that includes
information on Order Items, Users,
Products, Orders and Inventory
Items
*All examples are on learn.looker.com
*Slides will be available after presentation
4
Let’s dive in!
Conditional Statements
What this is helpful for:
• Bucketing data
• Conditional calculations (sum, mean, percent
change, based on a condition)
Let’s give it a try!
• We have a report that includes user age and order
count. Using this explore, how can we bucket users
by age and take the sum per bucket?
Additional Examples
5
if(${users.age} <= 50, "<= 50", null)
Nested if functions
if(${users.age} <= 50, "<= 50",
if(${users.age} > 50 AND ${users.age} < 75, "Between 50 and 75",
null))
if(${users.age} <= 50, "<= 50",
if(${users.age} > 50 AND ${users.age} < 75, "Between 50 and 75",
“>= 75”))
Offset Functions
What this is helpful for:
• Row-over-row comparisons
• Rolling average
• Custom running total
Let’s give it a try!
• We have a report that includes order items created year
and the count of order items. Using this explore, how can
we compare this year’s order items count to last year’s?
• Using the same report, how can we take the rolling
average from the past 3 years?
Additional Examples
6
mean(
offset_list(${order_items.count}, 0, max(row()) - row()
+ 1))
Rolling Average Using offset_list
offset_list(${order_items.count}, 0, max(row()) - row() +
1)
Pivot Functions
What this is helpful for:
• Side-by-side comparisons
• Grab data from specific pivot column
• Aggregate across rows
Let’s give it a try!
• We have a report that displays created year, user
age and order items count.
• Using this explore, how can we display percent of
total by year and only display data for this year?
Additional Examples
7
pivot_index(${order_items.count}, 4)
Pivot index
VS
Pivot where
pivot_where(${order_items.created_year} =
date(2015,01,01), ${order_items.count})
Statistical Functions
Let’s give it a try!
• We have a report that includes created month and
user age. Using this explore, how can we find the
most frequently occurring value for users age?
• We have a report that includes user state and
product total cost per state. Using this explore,
how can we find the percent rank for our total cost
values?
*All functions can be found in the Looker Functions &
Operators doc.
8
mode(${users.age})
percent_rank(${products.total_cost},${products.total_cost
})
Mode of User Age
Percent Rank of Total Cost
9
Some other cool functions...
large small skew kurtosis product geomean mode count_distinct chisq_test correl
covar_samp covar_pop slope intercept t_test binom_dist binom_inv norm_dist norm_inv
norm_s_dist norm_s_inv t_dist t_inv confidence_norm confidence_t beta_dist beta_inv gamma_dist
gamma_inv chisq_dist chisq_inv f_dist f_inv hypgoem_dist negbinom_dist poisson_dist weibull_dist
expon_dist rank_avg rank percent_rank z_test acos asin atan cos sin tan degrees
radians fact combin pi multinomial index match lookup
Join 2017_Deep Dive_Table Calculations 201

More Related Content

Similar to Join 2017_Deep Dive_Table Calculations 201

Excel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for AuditorsExcel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for AuditorsJim Kaplan CIA CFE
 
Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques
Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques
Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques Jim Kaplan CIA CFE
 
Basics+of+Datawarehousing
Basics+of+DatawarehousingBasics+of+Datawarehousing
Basics+of+Datawarehousingtheextraaedge
 
Project report aditi paul1
Project report aditi paul1Project report aditi paul1
Project report aditi paul1guest9529cb
 
Google Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsGoogle Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsSilvia Alongi
 
Demystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep DiveDemystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep DiveHyderabad Scalability Meetup
 
Abhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptx
Abhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptxAbhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptx
Abhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptxabhaypandey691688
 
Business intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionBusiness intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionHeadChannel
 
Business intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionBusiness intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionHeadChannel
 
Large Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesLarge Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesCidar Mendizabal
 
Analytic Snapshots: Common Use Cases that Everyone Can Utilize (Dreamforce 2...
Analytic Snapshots:  Common Use Cases that Everyone Can Utilize (Dreamforce 2...Analytic Snapshots:  Common Use Cases that Everyone Can Utilize (Dreamforce 2...
Analytic Snapshots: Common Use Cases that Everyone Can Utilize (Dreamforce 2...Rhonda Ross
 
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)Mary Scotton
 

Similar to Join 2017_Deep Dive_Table Calculations 201 (20)

Complete unit ii notes
Complete unit ii notesComplete unit ii notes
Complete unit ii notes
 
Business analysis
Business analysisBusiness analysis
Business analysis
 
Excel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for AuditorsExcel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for Auditors
 
Ali upload
Ali uploadAli upload
Ali upload
 
Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques
Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques
Using MS Excel In Your Next Audit - Top Basic & Intermediate Techniques
 
Basics+of+Datawarehousing
Basics+of+DatawarehousingBasics+of+Datawarehousing
Basics+of+Datawarehousing
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
 
Star schema
Star schemaStar schema
Star schema
 
Project report aditi paul1
Project report aditi paul1Project report aditi paul1
Project report aditi paul1
 
Google Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsGoogle Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google Analytics
 
Demystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep DiveDemystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep Dive
 
BB-_PPtt-1[1][1].pptx
BB-_PPtt-1[1][1].pptxBB-_PPtt-1[1][1].pptx
BB-_PPtt-1[1][1].pptx
 
Bi overview
Bi overviewBi overview
Bi overview
 
Abhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptx
Abhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptxAbhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptx
Abhay Narayan Pandey - Presentaion Of dashboard1- NoQs.pptx
 
Dwbi Project
Dwbi ProjectDwbi Project
Dwbi Project
 
Business intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionBusiness intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solution
 
Business intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionBusiness intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solution
 
Large Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesLarge Data Volume Salesforce experiences
Large Data Volume Salesforce experiences
 
Analytic Snapshots: Common Use Cases that Everyone Can Utilize (Dreamforce 2...
Analytic Snapshots:  Common Use Cases that Everyone Can Utilize (Dreamforce 2...Analytic Snapshots:  Common Use Cases that Everyone Can Utilize (Dreamforce 2...
Analytic Snapshots: Common Use Cases that Everyone Can Utilize (Dreamforce 2...
 
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
 

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
 
Join 2017_Deep Dive_Workflows with Zapier
Join 2017_Deep Dive_Workflows with ZapierJoin 2017_Deep Dive_Workflows with Zapier
Join 2017_Deep Dive_Workflows with ZapierLooker
 
Join2017_Deep Dive_AWS Operations
Join2017_Deep Dive_AWS OperationsJoin2017_Deep Dive_AWS Operations
Join2017_Deep Dive_AWS OperationsLooker
 
Join 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action HubJoin 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action HubLooker
 
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
 

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
 
Join 2017_Deep Dive_Workflows with Zapier
Join 2017_Deep Dive_Workflows with ZapierJoin 2017_Deep Dive_Workflows with Zapier
Join 2017_Deep Dive_Workflows with Zapier
 
Join2017_Deep Dive_AWS Operations
Join2017_Deep Dive_AWS OperationsJoin2017_Deep Dive_AWS Operations
Join2017_Deep Dive_AWS Operations
 
Join 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action HubJoin 2017 - Deep Dive - Action Hub
Join 2017 - Deep Dive - Action Hub
 
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
 

Recently uploaded

EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
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
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
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
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
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
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
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
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
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
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
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
 
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
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 

Recently uploaded (20)

EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
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🔝
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
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...
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
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
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
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
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
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
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
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
 
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
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
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...
 

Join 2017_Deep Dive_Table Calculations 201

  • 1. 1 Table Calculations 201 Paola Renteria Customer Support Analyst Department of Customer Love
  • 2. • What is a Table Calc? • Conditional statements • Offset functions • Pivot functions • Statistical functions • Questions 2 Agenda
  • 3. • An easy way for everyone to create their own calculations on the fly without the help of an analyst! • Based on Looker Expressions (LExp) rather than LookML • Can only reference fields included in the report • Advanced functions include looking at row-over-row data, pivot data, conditional statements, etc. 3 Overview
  • 4. We are an Ecommerce company using a data set that includes information on Order Items, Users, Products, Orders and Inventory Items *All examples are on learn.looker.com *Slides will be available after presentation 4 Let’s dive in!
  • 5. Conditional Statements What this is helpful for: • Bucketing data • Conditional calculations (sum, mean, percent change, based on a condition) Let’s give it a try! • We have a report that includes user age and order count. Using this explore, how can we bucket users by age and take the sum per bucket? Additional Examples 5 if(${users.age} <= 50, "<= 50", null) Nested if functions if(${users.age} <= 50, "<= 50", if(${users.age} > 50 AND ${users.age} < 75, "Between 50 and 75", null)) if(${users.age} <= 50, "<= 50", if(${users.age} > 50 AND ${users.age} < 75, "Between 50 and 75", “>= 75”))
  • 6. Offset Functions What this is helpful for: • Row-over-row comparisons • Rolling average • Custom running total Let’s give it a try! • We have a report that includes order items created year and the count of order items. Using this explore, how can we compare this year’s order items count to last year’s? • Using the same report, how can we take the rolling average from the past 3 years? Additional Examples 6 mean( offset_list(${order_items.count}, 0, max(row()) - row() + 1)) Rolling Average Using offset_list offset_list(${order_items.count}, 0, max(row()) - row() + 1)
  • 7. Pivot Functions What this is helpful for: • Side-by-side comparisons • Grab data from specific pivot column • Aggregate across rows Let’s give it a try! • We have a report that displays created year, user age and order items count. • Using this explore, how can we display percent of total by year and only display data for this year? Additional Examples 7 pivot_index(${order_items.count}, 4) Pivot index VS Pivot where pivot_where(${order_items.created_year} = date(2015,01,01), ${order_items.count})
  • 8. Statistical Functions Let’s give it a try! • We have a report that includes created month and user age. Using this explore, how can we find the most frequently occurring value for users age? • We have a report that includes user state and product total cost per state. Using this explore, how can we find the percent rank for our total cost values? *All functions can be found in the Looker Functions & Operators doc. 8 mode(${users.age}) percent_rank(${products.total_cost},${products.total_cost }) Mode of User Age Percent Rank of Total Cost
  • 9. 9 Some other cool functions... large small skew kurtosis product geomean mode count_distinct chisq_test correl covar_samp covar_pop slope intercept t_test binom_dist binom_inv norm_dist norm_inv norm_s_dist norm_s_inv t_dist t_inv confidence_norm confidence_t beta_dist beta_inv gamma_dist gamma_inv chisq_dist chisq_inv f_dist f_inv hypgoem_dist negbinom_dist poisson_dist weibull_dist expon_dist rank_avg rank percent_rank z_test acos asin atan cos sin tan degrees radians fact combin pi multinomial index match lookup