This article will guide users who are new to Looker to accelerate their first LookML project by building from concepts that are available in our sample LookML projects.
Most new Looker instances come with built-in sample content, including sample datasets and models. For users who launched a Looker (Google Cloud core) instance, you may have noticed our fictional e-commerce dataset, named TheLook, and three sample LookML projects, ranging from “basic” to “advanced”.
Sample projects are a great place to get exposed to LookML concepts with a working dataset and model, and to interactively try out making changes and seeing the resulting user experiences. However, it can still feel like a daunting process to transition from a sample to your first real LookML model. These five steps can guide you from start to finish.
Of course, the first step is to trial the sample projects and their resulting dashboards and Explores. Here is a partial list of some things to try in the sample project:
If you’re not yet familiar with the ‘hidden’ parameter in LookML, this is a great opportunity to see its value. By assigning `hidden: yes` to the Explores in the sample LookML, they will no longer appear in the Explore picker, so you can keep them around for reference purposes without inconveniencing your users.
This is also a great time to practice promoting changes from your development environment to production - this will ensure your changes are reflected in what other users see. You can try toggling out of Development Mode to confirm.
The sample project is great, but to keep things manageable and organized, you’ll want to create a new project to hold your LookML.
Although you can automatically generate views at the time that you are initializing your project, I usually recommend skipping it at that time and then using the “Create View From Table” option in the file browser. You will still be able to create several views at a time, but you will feel less pressure to include more views than is manageable at once. Just pick a few to get started with, you can always return for more later!
Now that you have some views representing your tables, you just need a few small declarations to get to a similar place as the basic sample LookML:
Then, also consider some of the ideas from the intermediate sample to get your project looking even more polished:
At this point, you now have a functional and usable model for your users! But of course, there is always more to learn with LookML. If you keep the sample project around, you can refer to the intermediate and advanced models for ideas of what’s possible. And if not, you can also discover new LookML parameters from the sidebar of the Looker IDE, or by browsing the guides and best practices on Looker Docs.