Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a folder of files full of wrong added semicolumn. How to code and avoid those errors inside a source file like CSV?
Hi @toplisek,
Thank you for reaching out to the Microsoft fabric community forum. Also thanks @speedramps for his insights on this thread. I have identified several alternative workarounds that may assist in resolving the thread.
Based on your description, it sounds like the extra semicolons in your files are introducing unexpected blank columns when importing into Power BI, particularly from CSV or Excel formats. This can lead to parsing errors or data misalignment during the import process.
Since DAX operates after the data has already been loaded into the model, Dax is not the right tool to clean raw CSV data it operates after the data is loaded into Power BI. To fix this, Power Query (M code) is the appropriate layer, not DAX.
If you're working with Excel files, you can use the Excel.Workbook function in Power Query to access the sheet contents and then remove any extra columns caused by formatting inconsistencies. Here's the official Microsoft documentation for reference: Excel.Workbook – Power Query M
Use Text.Replace or Text.TrimEnd inside Power Query to clean unwanted semicolons from columns. Or use Table.RemoveColumns if an extra column is being created due to the trailing semicolon. Also please go through the below mentioned links for better understanding:
Text.Replace - PowerQuery M | Microsoft Learn
Text.TrimEnd - PowerQuery M | Microsoft Learn
Table.RemoveColumns - PowerQuery M | Microsoft Learn
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Hi @toplisek,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Have you tried removing the semicolons?
I want to help you more but your description is too vague
You will get a quicker and better response without misunderstandings if you put time and effort into carefully writing a clear problem description with example input and output data. Look forward to helping you when this information is forthcoming
* Please DO give a simple non-technical functional description of what you want
* Keep it simple and break large projects into smaller questions and ask just one question per ticket.
* Rename columns to user friendly names. Avoid your own system jargon that we may not understand.
* Most importantly please provide example input data as table text (not a screen print) so helpers can import the data to build a solution for you. (Learn how to share data below)
* Provide the example desired output, with a clear step-by-step description of calculations and the process flow.
* Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.
* Remove any unneeded tables, rows or columns which may cause confusion. Keep it short and concise with the minimal information regarding the key problem.
* Remember not to share private data ... we don't want you to get into trouble.
* Please click the thumbs up button for these helpful hints and tips. Thank you.
Learn how to attach data in the forum using OneDrive:-
* Save your file in a OneDrive folder
* Right click on the file and click the “Share” blue cloud icon
* Click the bottom “Copy” button
* Click” Anyone with link can edit”
* Click “Can Edit”
* Click “Can View”
* Click “Apply” button
* Click “Copy”
* Paste the generated link via the forum, email, chat, or any other method.
* Helpers can then download your data, build a solution and share it back.
Learn how to attach data in the forum using Dropbox:-
1. Open Dropbox: Access the Dropbox folder on your computer or through the Dropbox web interface.
2. Select File/Folder: Find the file or folder you want to share.
3. Click Share (or Get Link): Look for a "Share" option or a similar "Get Link" option.
4. Choose Permissions: Decide whether to allow "view only" or "view and download" access.
5. Copy and Share: Copy the generated link and share it with anyone via the forum, email, chat, or any other method.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |