LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

We’re going to explore a really unique LuckyTemplates grouping or segmentation example in this tutorial. You may watch the full video of this tutorial at the bottom of this blog.

We’ll create an aged trial balance grouping inside LuckyTemplates. This technique involves re-using many of the grouping and segmentation patterns that we already learned. Utilizing LuckyTemplates grouping patterns for this unique example is no different.

The idea behind this tutorial is to show you how you can utilize some common grouping or segmentation patterns in LuckyTemplates.

This tutorial actually came out from a question in the LuckyTemplates Support Forum, which is based on accounting reporting requirements and aged trial balances.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

Age trial balances, in accounting, gives us a breakdown of our receivables with outstanding balances and shows us how far out they are. And so, through time, we can see whether we have a lot of receivables due in 60, 90, 120 days or in the next month, etc.

With this kind of analysis, we want to group the data and simplify the report. We’ll use some advanced DAX calculations to achieve this. Before we get to the formula, let’s have a quick look at the sample data I made for this tutorial.

Table of Contents

Sample Data Set And Model Set Up

In this table, we have Clearing Date and Due Date columns and we want to work out the difference between these two dates. Then, we’ll group or segment those date differences based on whatever group we select and we’ll do it dynamically.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

This is the Grouping table that I created for the solution. We have our Groups (age brackets), Sort Order, Min, and Max columns. I just made up the numbers here, but you could rearrange or customize this yourself for your own reports.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

I used the Enter Data to create this table.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

The Sort Order column is key when we have text value. We have to make sure that we can sort by something so that the values go on the correct order if we’re showing them in a visualization.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

This table has no relationship to anything in the data model. I call tables like this as supporting or secondary tables. We then iterate through this table and run logic through it

Working Out The DAX Calculation

The first thing we need to do is something really simple, which is to sum up the Value column.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

This will give us a core measure that generates some value for us. We can’t actually use this because there’s no relationship between our Transaction table and our Group table. We’ll have to do the filtering within a formula. 

So this is the formula that we utilize. I call it Values Per Group and it contains several DAX functions.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX

This calculation will ultimately return the Total Value, but we need to iterate through each row in the Transaction Table. At every single row, we need to work out the difference (DATEDIFF) in those dates (Due Date and Clearing Date).

In other words, in every row, we’re working out the date differences between those two columns. At the same time, we’re also going through every row in the Aged Debtors Group table. If this logic equals true, the COUNTROWS logic will also be true. In this case, it will return Total Value.

We can then turn this calculations into visualizations.

LuckyTemplates Grouping Technique: Aged Trial Balance Using DAX


Use DAX To Segment & Group Data In LuckyTemplates
Segmentation Example Using Advanced DAX In LuckyTemplates
LuckyTemplates Advanced Analytics: Secondary Table Logic Techniques

Conclusion

This tutorial is a unique example of how you can utilize some of the LuckyTemplates grouping and segmenting techniques inside your models. It’s a great application, both from an accounting perspective and financial analysis perspective.

We created a supporting table and used some advanced DAX formulas to get the insights we’re looking for. This type of analysis is really good from a cash management perspective and businesses.

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.