Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
In the attached screenshot, I've been able to filter out key data needed from a Text document.
Current Results
However, each piece of data is in it's own row. I'm stuck trying to figure out how to realign these rows so that the 3 pieces of data appear in the same row, or simply to remove the Null values in each Column so that when each individual column is cleaned up, each row will contain the Letter ID, Account Number, and Name in a single row.
So instead of
[null] | Account # | [null]
Letter_ID | [null] | [null]
[null] | [null] | Name
I would get this:
Letter_ID | Account # | Name
Letter_ID | Account # | Name
Solved! Go to Solution.
I did find a solution:
https://community.powerbi.com/t5/Desktop/Remove-rows-of-certain-columns-with-Query/m-p/359476
In my case, I skipped the Source line, and added the code to the end. Making sure to update the references to the last line in my existing query.
I was struggling to get this to tack on to the end of my existing Query by adding the linked code in the Advanced Editor. I ultimately realized that my issue was that I did not update the previous step references.
Ultimately running through the code once moved Columns 1 & 3 up by one row so that now 1 & 2 aligned.
I added a second round of the code, giving them new variable names (e.g. TableToColumns2) and running those off of the "Reassmble" result, and this moved Column 3 up.
Data is aligned exactly as I need.
I appreciate the willingness to help!
Hi @Anonymous ,
Glad you got it to work. I made the mistake of assuming that you were looking for an automated way to solve. Will keep this in my back pocket in case I ever need it.
Hi @Anonymous ,
Maybe someone else will have an answer, but I don't see how this is possible. How would Power Query know which rows are part of the same record?
I did find a solution:
https://community.powerbi.com/t5/Desktop/Remove-rows-of-certain-columns-with-Query/m-p/359476
In my case, I skipped the Source line, and added the code to the end. Making sure to update the references to the last line in my existing query.
I was struggling to get this to tack on to the end of my existing Query by adding the linked code in the Advanced Editor. I ultimately realized that my issue was that I did not update the previous step references.
Ultimately running through the code once moved Columns 1 & 3 up by one row so that now 1 & 2 aligned.
I added a second round of the code, giving them new variable names (e.g. TableToColumns2) and running those off of the "Reassmble" result, and this moved Column 3 up.
Data is aligned exactly as I need.
I appreciate the willingness to help!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |