👤 Utilizing root areas with clients
Learn how to use the Root Areas feature to separate your work and personal lives.
💡 One problem with areas that you may encounter is that when you have lots of clients, and each one of them is a separate area. You might want to do this when you have multiple projects related to a client. And since projects are not nestable, we’ll utilize the Root Area feature to create nestable areas.
In my example here, I've created three separate areas. Two are my clients, and one is a top-level area where I'll link all the lower-level ones.
Now, in each of my separate client areas, I can specify a Root Area. Let's choose our top-level Clients area here.
By default, these lower-level areas will show up as Resources in the top-level Clients area, but we can rename this property to Clients. To edit your properties, you'll need to start unlock the main database.
This should already work, but there are a few more modifications that we can do to make this solution work even better.
The first problem we have here is that the Projects relation property won't work for our root area, since that will only show projects connected to a particular client, and we won't be connecting any projects to the top-level Clients area.
We can't unfortunately rollup a rollup, so we'll need to do a little hack here.
First, let's add a formula property in our Areas/Resources database. Let's call it Projects (Client Total). All it will do is simply print out all the projects related to a client.
The formula is a very simple one, as shown below. Once added, set it to Always hide since we won't need to look at it.
prop(“Projects”)And now, let's add a rollup property called Projects (Across Clients). It will show us all the client projects in one place. Here are the rollup settings.
We can set this one to Hide when empty. Now, let's go back to our Areas/Resources database view and create two new views — one for our clients, and another for all other areas.
First, go in and duplicate the existing gallery view. Then, add a new filter rule: [Root Area] [Contains] [Clients (Root Area)]
Lastly, in the main gallery view, add a filter [Root Area] [Is empty]. That will filter out all the lower-level client areas from the main Areas view. Unfortunately, this will also filter out any other areas that will have their Root Area filled. Keep that in mind when setting up other areas, outside your client setup.
The last problem here is that in our main, top-level Clients Root Area, no projects will show up inside the area page, since none will be linked directly to it. What we have to do here is add a new property called Type to our Projects database, and add Client as an option.
This is necessary because even though we can filter out projects belonging to the root area, or even make a formula that would tell us if an area we're connected to is not the root area, that could still lead to a scenario where we'd accidentally show projects related to other areas, not necessarily our clients. (Any project that is connected to an area that is not our main root area would show up).
Let's add a filter to the Projects linked database inside our root area.
By using this solution, we can essentially add a new layer of organization between areas and projects.
Hopefully this method can help you better organize your work if you have multiple clients or otherwise have many different areas of responsibility in your life.