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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
rz21c97
Regular Visitor

Converting hierarchical data

Hello,

 

I'm relatively new to power query. I've been trying to convert this table

 

N
Actividad
1
Asegurar reportabilidad
2
Crear dashboard en Power BI
2.1
Creación del dashboard
2.2
Revisión
2.3
Aprobación
3
Estandarización
3.1
Actualizar documentación
3.1.1
Actualización
3.1.2
Revisión
3.1.3
Aprobación
4
Corregir
4.1
-
4.2
-

 

into another one,

 

C1
C2
C3
Asegurar reportabilidad
-
-
Crear dashboard en Power BI
Creación del dashboard
-
Crear dashboard en Power BI
Revisión
-
Crear dashboard en Power BI
Aprobación
-
Estandarización
Actualizar documentación
Actualización
Estandarización
Actualizar documentación
Revisión
Estandarización
Actualizar documentación
Aprobación
Corregir
-
-
Corregir
-
-

 

but I'm having some difficulties. Could you help me?

 

Thanks in advance.

1 REPLY 1
wdx223_Daniel
Community Champion
Community Champion

= let a=Record.FromTable(#table({"Name","Value"},Table.ToRows(Table.TransformColumns(Source,{"N",Text.From})))) in Table.FromColumns(List.Zip(Table.ToList(Source,each let b=Text.Split(Text.From(_{0}),".") in List.Transform(List.Positions(b),each Record.Field(a,Text.Combine(List.FirstN(b,_+1),"."))))))

wdx223_Daniel_0-1688373490713.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.