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.
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.
What is the approach in PowerBI to tackle this issue (efficiently)?
PS: blacked out some data for confidentiality reasons
Solved! Go to Solution.
@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.
What is the approach in PowerBI to tackle this issue (efficiently)?
PS: blacked out some data for confidentiality reasons
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.
By thy way, could you share the a sample log txt? You can mask the sensitive data before sharing.
@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.
What is the approach in PowerBI to tackle this issue (efficiently)?
PS: blacked out some data for confidentiality reasons
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.
By thy way, could you share the a sample log txt? You can mask the sensitive data before sharing.
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
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |