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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
blander
Regular Visitor

Challenges while converting table to a more structured version

Hi all,

 

I imported a .txt file in powerBI which is basically an import log file (refer to screenshot below) and shows the amount of lines per table that were extracted from a system. I want to convert this file into a table with following 2 columns: Table name and amount of imported lines (marked in blue in picture). The issues I am confronting are

 

1) The table name is nested within a long string of characters that I don't need

2) The corresponding amount of lines ("Zeilen") can be found on the row below the one that contains the table name string. 

 

Importlog.JPG

 

What is the approach in PowerBI to tackle this issue (efficiently)?

 

 

 

PS: blacked out some data for confidentiality reasons

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@blander wrote:

Hi all,

 

I imported a .txt file in powerBI which is basically an import log file (refer to screenshot below) and shows the amount of lines per table that were extracted from a system. I want to convert this file into a table with following 2 columns: Table name and amount of imported lines (marked in blue in picture). The issues I am confronting are

 

1) The table name is nested within a long string of characters that I don't need

2) The corresponding amount of lines ("Zeilen") can be found on the row below the one that contains the table name string. 

 

Importlog.JPG

 

What is the approach in PowerBI to tackle this issue (efficiently)?

 

 

 

PS: blacked out some data for confidentiality reasons


@blander

If the log is always repeating "opening","closing","-->", then you can add index column and custom column as below. After that you would get the groups and you can aggregate against the group column.

 

Capture.PNG

 

By thy way, could you share the a sample log txt? You can mask the sensitive data before sharing.

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@blander wrote:

Hi all,

 

I imported a .txt file in powerBI which is basically an import log file (refer to screenshot below) and shows the amount of lines per table that were extracted from a system. I want to convert this file into a table with following 2 columns: Table name and amount of imported lines (marked in blue in picture). The issues I am confronting are

 

1) The table name is nested within a long string of characters that I don't need

2) The corresponding amount of lines ("Zeilen") can be found on the row below the one that contains the table name string. 

 

Importlog.JPG

 

What is the approach in PowerBI to tackle this issue (efficiently)?

 

 

 

PS: blacked out some data for confidentiality reasons


@blander

If the log is always repeating "opening","closing","-->", then you can add index column and custom column as below. After that you would get the groups and you can aggregate against the group column.

 

Capture.PNG

 

By thy way, could you share the a sample log txt? You can mask the sensitive data before sharing.

vanessafvg
Super User
Super User

i would do it in power query..

 

best to get to grips with the functionality in power query there are some great webinars out there

 

for some reason this one sticks out 

 

https://www.youtube.com/watch?v=ECT5WR0D6-w





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors