Understanding What Data Modeling Is And Creating The Right Relationships

After having an extensive discussion about the query editor, it’s time to move all that data into a LuckyTemplates report through data modeling. You may watch the full video of this tutorial at the bottom of this blog.

Data modeling allows you to connect different data tables in your LuckyTemplates report by creating relationships between them.

Table of Contents

Fixing Relationships In The Core Data Model

My core data model consists of all the tables I fixed in the query editor. This includes my Customers table, Locations table, Products table, etc.

Understanding What Data Modeling Is And Creating The Right Relationships

Since I’ve cleaned up those tables and I’m sure that I have all the data I need for now, I’m going to click on Close & Apply to close the query editor and apply any pending changes.

Understanding What Data Modeling Is And Creating The Right Relationships

Of course, this doesn’t mean that I won’t be going back into the query editor once I start working on data modeling. I would definitely be coming back into it a lot, especially if I need to make additional transformations or if I need to bring in new data depending on what my reports require.

The process of applying the queries into my LuckyTemplates model might take some time, depending on the amount of data I have.

Understanding What Data Modeling Is And Creating The Right Relationships

But once the application is done, I’m going to end up on a fresh canvas where I can start creating my analysis.

Understanding What Data Modeling Is And Creating The Right Relationships

Some people may jump straight into this part. But what I usually do is check the relationships built around the data I worked on when I was in the query editor.

Understanding What Data Modeling Is And Creating The Right Relationships

This is the modeling area, which I can access through this particular icon here.

Understanding What Data Modeling Is And Creating The Right Relationships

If you have no LuckyTemplates experience and were previously working on Excel, this will be completely unfamiliar to you. It’s important that you understand this part because it is crucial in developing anything within LuckyTemplates.

This is where I can make sure that the relationships across my data are set up in an optimal manner. Otherwise, it will be harder to get any calculation or analysis done correctly.

The relationships are represented by these lines and arrows running across the data tables.

Understanding What Data Modeling Is And Creating The Right Relationships

LuckyTemplates normally guesses the relationships among the different tables automatically. Unfortunately, LuckyTemplates gets this part wrong most of the time.

So I usually start off by deleting these existing relationships, especially when I’m 100% unsure if the default relationships LuckyTemplates has placed make sense.

Understanding What Data Modeling Is And Creating The Right Relationships

Understanding What Data Modeling Is And Creating The Right Relationships

In Excel, you would normally have one huge file with hundreds of columns. But data modeling within LuckyTemplates is different.

Here, for example, I have a core set of information, and then I have separate supporting tables that have filtering information within them. So I end up with different tables with different data groups in each one.

Understanding What Data Modeling Is And Creating The Right Relationships

This is the critical part in data modeling – identifying whether each table is a lookup table or a fact table. It’s important to understand what these two types of tables do so that you can understand what kind of relationships you can draw through them.

A fact table carries all the transactions, like in this sales table.

Understanding What Data Modeling Is And Creating The Right Relationships

On the other hand, a lookup table carries filtering information.

Once I’ve identified where my tables belong, I organize them. I like lining up my lookup tables here on top in a single row.

Understanding What Data Modeling Is And Creating The Right Relationships

As for my fact table, I like putting it below.

Understanding What Data Modeling Is And Creating The Right Relationships

Of course, some people might do it differently. But this is the best practice I want to share because I have a philosophy of keeping things as simple as possible.

I layer these tables like this because I want to visualize how the relationships go. I call this a waterfall of filters. This way, I have my lookup tables on top sending filtering information down into the raw data that I’m working with.


Top 3 Best Practices To Organize Your LuckyTemplates Models
How To Organize Your LuckyTemplates Data Model – Best Practice Tips
Customer Segmentation Techniques Using The Data Model – LuckyTemplates & DAX

Conclusion

This is very basic stuff, but it’s crucial that you master this because it can make or break your calculations later on.

Understanding the basics of data modeling helps you make sure you’re getting the right results in your reports. It will save you the frustration of trying to find the root cause of errors that might result from the wrong relationships.

All the best,

Leave a Comment

Excel Hücrelerini Metne Sığdırma: 4 Kolay Çözüm

Excel Hücrelerini Metne Sığdırma: 4 Kolay Çözüm

Excel hücrelerini metne sığdırmak için güncel bilgileri ve 4 kolay çözümü keşfedin.

Bir Excel Dosyasının Boyutu Nasıl Küçültülür – 6 Etkili Yöntem

Bir Excel Dosyasının Boyutu Nasıl Küçültülür – 6 Etkili Yöntem

Bir Excel Dosyasının Boyutunu Küçültmek için 6 Etkili Yöntem. Hızlı ve kolay yöntemler ile verilerinizi kaybetmeden yer açın.

Pythonda Self Nedir: Gerçek Dünyadan Örnekler

Pythonda Self Nedir: Gerçek Dünyadan Örnekler

Python'da Self Nedir: Gerçek Dünyadan Örnekler

Rde Bir RDS Dosyası Nasıl Kaydedilir ve Yüklenir

Rde Bir RDS Dosyası Nasıl Kaydedilir ve Yüklenir

R'de bir .rds dosyasındaki nesneleri nasıl kaydedeceğinizi ve yükleyeceğinizi öğreneceksiniz. Bu blog aynı zamanda R'den LuckyTemplates'a nesnelerin nasıl içe aktarılacağını da ele alacaktır.

İlk N İş Günü Tekrar Ziyaret Edildi – Bir DAX Kodlama Dili Çözümü

İlk N İş Günü Tekrar Ziyaret Edildi – Bir DAX Kodlama Dili Çözümü

Bu DAX kodlama dili eğitiminde, GENERATE işlevinin nasıl kullanılacağını ve bir ölçü başlığının dinamik olarak nasıl değiştirileceğini öğrenin.

LuckyTemplatesda Çok İş Parçacıklı Dinamik Görsel Tekniği Kullanarak Öngörüleri Sergileyin

LuckyTemplatesda Çok İş Parçacıklı Dinamik Görsel Tekniği Kullanarak Öngörüleri Sergileyin

Bu eğitici, raporlarınızdaki dinamik veri görselleştirmelerinden içgörüler oluşturmak için Çok Kanallı Dinamik Görseller tekniğinin nasıl kullanılacağını kapsayacaktır.

LuckyTemplatesda İçeriği Filtrelemeye Giriş

LuckyTemplatesda İçeriği Filtrelemeye Giriş

Bu yazıda, filtre bağlamından geçeceğim. Filtre bağlamı, herhangi bir LuckyTemplates kullanıcısının başlangıçta öğrenmesi gereken en önemli konulardan biridir.

LuckyTemplates Çevrimiçi Hizmetindeki Uygulamaları Kullanmak İçin En İyi İpuçları

LuckyTemplates Çevrimiçi Hizmetindeki Uygulamaları Kullanmak İçin En İyi İpuçları

LuckyTemplates Apps çevrimiçi hizmetinin çeşitli kaynaklardan oluşturulan farklı raporların ve içgörülerin yönetilmesine nasıl yardımcı olabileceğini göstermek istiyorum.

Fazla Mesai Kâr Marjı Değişikliklerini Analiz Edin - LuckyTemplates ve DAX ile Analitik

Fazla Mesai Kâr Marjı Değişikliklerini Analiz Edin - LuckyTemplates ve DAX ile Analitik

LuckyTemplates'da ölçü dallandırma ve DAX formüllerini birleştirme gibi teknikleri kullanarak kâr marjı değişikliklerinizi nasıl hesaplayacağınızı öğrenin.

DAX Studioda Veri Önbellekleri İçin Materyalleştirme Fikirleri

DAX Studioda Veri Önbellekleri İçin Materyalleştirme Fikirleri

Bu öğreticide, veri önbelleklerini gerçekleştirme fikirleri ve bunların DAX'ın sonuç sağlama performansını nasıl etkilediği tartışılacaktır.