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
Luizcarlospf
Helper I
Helper I

How to solve hierarchy problems using the mask of each product ?

I need to transform this data set into a hierarchical structure as in the example in the image

 

Can anybody help me ?

 

Luizcarlospf_1-1615544535132.png

 

 

 

I used this data as an example: .csv

 

mask;hierarchy;level;Name;Value
1.2.33;1;1;Ativo;30
1.2.33;2;1;Passivo;50
1.2.33;1.1;2;Ativo Circulante;20
1.2.33;1.2;2;Ativo não Circulante;10
1.2.33;2.1;2;Passivo Circulante;20
1.2.33;2.2;2;Passivo não Circulante;30
1.2.33;1.1.10;3;Raw Material;20
1.2.33;2.2.10;3;Investment;10

1 ACCEPTED SOLUTION
Luizcarlospf
Helper I
Helper I

https://radacad.com/parsing-organizational-hierarchy-or-chart-of-accounts-in-power-bi-with-parent-ch...

I tried to follow that example(Link), but apparently there is no way, because you need to have the "names" keys.

I need to somehow create new columns (Levels) to replace the integer with the string (Name column)




View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Luizcarlospf ,

 

Why you have blank row in "Ativo"? To what I understand according your description the total value for "Ativo" should be 30, did I missed any point?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Luizcarlospf_0-1615893196108.png

I'm sorry, I ended up making a mistake in the example design. But your need to arrive in a hierarchy like this image using only one column with the "path". From what I have studied, the problem is in having identical "paths".

Luizcarlospf
Helper I
Helper I

https://radacad.com/parsing-organizational-hierarchy-or-chart-of-accounts-in-power-bi-with-parent-ch...

I tried to follow that example(Link), but apparently there is no way, because you need to have the "names" keys.

I need to somehow create new columns (Levels) to replace the integer with the string (Name column)




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.