Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Business Intelligence with Looker Cookbook

You're reading from   Business Intelligence with Looker Cookbook Create BI solutions and data applications to explore and share insights in real time

Arrow left icon
Product type Paperback
Published in May 2024
Publisher Packt
ISBN-13 9781800560956
Length 256 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Khrystyna Grynko Khrystyna Grynko
Author Profile Icon Khrystyna Grynko
Khrystyna Grynko
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Chapter 1: Getting Started with Looker 2. Chapter 2: Configuring Views and Models in a LookML Project FREE CHAPTER 3. Chapter 3: Working with Data in Explores 4. Chapter 4: Customizing and Serving Dashboards 5. Chapter 5: Making Dashboards Interactive through Dynamic Elements 6. Chapter 6: Troubleshooting Looker 7. Chapter 7: Integrating Looker with Other Applications 8. Chapter 8: Organizing the Looker Environment 9. Chapter 9: Administering and Monitoring Looker 10. Chapter 10: Preparing to Develop Looker Applications 11. Index 12. Other Books You May Enjoy

Reusing the LookML code

There are multiple ways to reuse the elements in LookML, such as the following:

  • include
  • extends
  • ${}
  • Refinements
  • Looker Blocks

We’ve already used $ quite a lot to reference the existing dimensions and measures.

We have also used the include parameter, which specifies the LookML files that will be available to a model, a view, and an Explore. If you want to use or reference a LookML file within another file, you must add it with the include parameter.

Let’s review some other techniques you can use to reuse elements in Looker.

Getting ready

Make sure you are in your LookML environment, and Development Mode is activated.

How to do it...

The extends parameters can be used both for views and Explores. For example, you can use the extends parameter in views to reuse the content and settings of another view, with the ability to override any settings that you want.

We can learn how to do that by following...

You have been reading a chapter from
Business Intelligence with Looker Cookbook
Published in: May 2024
Publisher: Packt
ISBN-13: 9781800560956
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime