Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
CasperSV
Helper II
Helper II

Connecting G/L Account categories with chart of accounts

Hi guys,

 

I am trying to make a matrix with different levels of G/L categories. 

 

Desired result:

CasperSV_0-1646645404534.png

 

 

I was able to use a lookupvalue calculation to create categorie 'Omzet Handling en bewerkingen', however the categorie above 'Omzet' is not working. 

CasperSV_1-1646645872622.png

 

 

Anyone an idea how to get the highest level? 

 

 

1 ACCEPTED SOLUTION

Hi @CasperSV 

 

You can create two calculated columns in "Chart of accounts" table as below. 

category = MAXX(FILTER('G/L Account Categories','G/L Account Categories'[Description]='Chart of accounts'[G/L Subcategory]),'G/L Account Categories'[Rekeningcategorie])
category top = MAXX(FILTER('G/L Account Categories','G/L Account Categories'[Description]='Chart of accounts'[category]),'G/L Account Categories'[Rekeningcategorie])

vjingzhang_0-1646906258130.png

 

Then drag columns from this table into the matrix as Rows fields. You can create a new column by combining "G/L account no" and "G/L account name" with &.

vjingzhang_2-1646906695755.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

5 REPLIES 5
CasperSV
Helper II
Helper II

@v-jingzhang 

 

Hi, thank you for your help!

 

I have another colum which is called 'Viewing order' and is filled with numbers to decide the viewing order of the subcategories.

I have tried the same trick to get the viewing order column from the 'G/L Account Categories' to the 'Chart of accounts'. However, when i try to sort the 'G/L Subcategory' based on the 'Viewing order' I am getting the following error (sorry it is in Dutch) :

CasperSV_0-1647248635523.png

Which states that 'There is a circular dependency detected' 

CasperSV_1-1647248667330.png

 

I have added the file below.

 

 

 

Download the file:

https://ufile.io/luejpdqe 

amitchandak
Super User
Super User

@CasperSV , No very clear. But seem like you need to break GL account in power query and generate the numbers.

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

Hi @amitchandak 

 

Thank you for your reply.

 

Hope this will make it more clear:

The chart of accounts

CasperSV_0-1646666007664.png

 

G/L Account Categories

CasperSV_1-1646666088353.png

 

 

With these relationships

CasperSV_2-1646666252422.png

 

 

Hi @CasperSV 

 

You can create two calculated columns in "Chart of accounts" table as below. 

category = MAXX(FILTER('G/L Account Categories','G/L Account Categories'[Description]='Chart of accounts'[G/L Subcategory]),'G/L Account Categories'[Rekeningcategorie])
category top = MAXX(FILTER('G/L Account Categories','G/L Account Categories'[Description]='Chart of accounts'[category]),'G/L Account Categories'[Rekeningcategorie])

vjingzhang_0-1646906258130.png

 

Then drag columns from this table into the matrix as Rows fields. You can create a new column by combining "G/L account no" and "G/L account name" with &.

vjingzhang_2-1646906695755.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

@v-jingzhang Thank you! It works 😊

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.