LuckyTemplates Banding & Segmenting Example Using DAX

In this tutorial, I go over a LuckyTemplates banding and grouping example using the DAX formula. This is quite an advanced example, but it does show an awesome way that you can visualize your reports. You may watch the full video of this tutorial at the bottom of this blog.

Sometimes, you might want to visualize your reports in a certain way that shows a particular insight effectively. However, this would be quite hard to do in a traditional Excel report. On the other hand, creating compelling and unique visualizations like this in LuckyTemplates is very easy.

In this example, I work out my total sales for my customers in a particular year. But instead of just having this plain total sales per year, I want to see who among my customers grew a lot, those that didn’t, and the ones with average growth. This is what we call LuckyTemplates banding and grouping or segmenting.

LuckyTemplates Banding & Segmenting Example Using DAX

LuckyTemplates Banding And Grouping Example

I work out a logic to achieve that, then I incorporate this logic to create comparison visualizations. I’ll show you how to do this from scratch.

Table of Contents

Calculating Sales Growth

First, we want to work out Total Sales, obviously we start from here.

LuckyTemplates Banding & Segmenting Example Using DAX

Then, we branch out to Sales LY (last year), which is a simple time intelligence calculation.

LuckyTemplates Banding & Segmenting Example Using DAX

From here, we can work out Sales Growth because all we have to do is divide Total Sales by Sales LY, and subtract 1.

LuckyTemplates Banding & Segmenting Example Using DAX

We can then create a table like this with our Total Sales and our Sales Growth so we can see the results.

LuckyTemplates Banding & Segmenting Example Using DAX

But at the moment, this doesn’t really group, and so this is where we need to use the banding. This alone doesn’t group our customers by anything. In this case, we wouldn’t know what the growth was and which group these customers belonged to.

Creating The Bands Or Groups

To achieve this LuckyTemplates banding and grouping, we first need to create the groups or bands that we would classify as good growth, average growth, and bad growth.

To do this, we’re going to use the Enter Data feature. This is where we create our table, Sales Growth Groups.

LuckyTemplates Banding & Segmenting Example Using DAX

Click on Enter Data to create a table.

We simply input the details that we want to have in this table’s columns, and then click Load.

LuckyTemplates Banding & Segmenting Example Using DAX

This will just become a supporting table. It doesn’t integrate into our model at all. 

LuckyTemplates Banding & Segmenting Example Using DAX

inside the data model

We now have our Customer Groups in this table.

LuckyTemplates Banding & Segmenting Example Using DAX

With this, we can now create the logic or calculation to group all these customers.

Working Out The Logic For Sales Per Growth Group

To create a new formula or calculation, we click on New Measure.

LuckyTemplates Banding & Segmenting Example Using DAX

Let’s call this one Sales Per Growth Group. We’ll go Total Sales to provide a different context. Then, in our FILTER logic, we’ll use Customer Name. We want to evaluate which row remains based on the growth of that customer, so we go , and then our supporting table (Sales Growth Groups). Then, we’ll write our logic to run through this supporting table.

LuckyTemplates Banding & Segmenting Example Using DAX

As we drag this formula into the Date context, nothing actually changes, which is exactly how it should be.

LuckyTemplates Banding & Segmenting Example Using DAX

It’s meant to equal the Total Sales because we then have to overlay the context of our customer segments to get a breakdown. 

Overlaying The Context Of Customer Segments

We turn this table into a matrix like so to bring in our Customer Segments into columns. We can see that this breaks up based on the growth from year-on-year (YoY) growth for that particular customer.

LuckyTemplates Banding & Segmenting Example Using DAX

From here, we can then create the visualization (click on the stacked bar chart and bring in Customer Segments into the columns) where we can look at each customer, but also have a clear delineation whether they’re good growth customers or poor growth customers. Simultaneously, we’re still highlighting Total Sales here.

LuckyTemplates Banding & Segmenting Example Using DAX

Then, we sort it properly.

LuckyTemplates Banding & Segmenting Example Using DAX

Now we have clear results.

LuckyTemplates Banding & Segmenting Example Using DAX

We can also show these results (on the left table) as a bar chart with the custom banding inside it. We can have more insight than just the standard visualization.

LuckyTemplates Banding & Segmenting Example Using DAX

Moreover, through this logic that we’ve developed, we can create a range of visualizations. We can create a scatter chart by utilizing this calculation.

LuckyTemplates Banding & Segmenting Example Using DAX

With this logic, we can overlay our Customer Segments in the Legend. That’s going to break down the good versus bad growth customers, which brings that additional insight or element to our visualizations. 


Use DAX To Segment & Group Data In LuckyTemplates
Segmentation Example Using Advanced DAX In LuckyTemplates
Data Segmentation Based On Percentage Groups – Advanced DAX In LuckyTemplates

Conclusion

This is a really powerful LuckyTemplates banding and grouping (segmenting) example. This is not the only way that you can use this technique. There are many ways that you can apply this technique. 

If you can understand the logic that I go through in this tutorial, you’ll go a long way. Think about what logic or banding you could do on any calculation and on any metric that you’ll calculate. It’s just a matter of setting it up and running through some very similar logic. 

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.