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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PietroFarias
Resolver II
Resolver II

How to add columns to create hierarchy in query editor?

Guys, I want to find a more practical way to create columns where I will create the hierarchies in DAX. I have performed several redundant procedures in the Query Editor until the query stays as I want. But, I believe, there is some much more practical way. Can you show me?

Disire Result.jpg

 

 

 


These are the data I used in the example.

 

CÓD. CTA	G1	G2	G3	G4	G5	NOME DA CONTA	COD CONTA
1	1					ATIVO	1
2	1	1				CIRCULANTE	1.1
3	1	1	01			DISPONIVEL	1.1.01
101	1	1	01	01		CAIXA	1.1.01.01
10101	1	1	01	01	0001	Caixa	1.1.01.01.0001
3 REPLIES 3
v-fengyz-msft
Helper I
Helper I

@PietroFarias

 

It's hard to find the relationship between source and your desired result.

 

So, is there any logic between them? That's helpful.

 

Regards,

 

Pirlo Zhang 

In fact what happened was the case of EXCESS work. hahaha .. The solution was always with me and was breaking the head. I went to sleep and when I woke up I saw the problem. My source was already what I needed, and did not need the "desired result".

@PietroFarias

 

Glad hear you resolved the issue.

 

If you have any questions, please feel free to ask.

 

Regards,

Pirlo Zhang

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.