Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I worked on my project last night saved and closed. The next day I tried to open the project and received this error prompt:
It seems like there is a trailing space introduced into a column name and it made its way into my model. Researching a little I found the Power BI Rest API export to CSV inserts a trailing space for this one field.
CSV
REST API Call
The fix:
Open the BIM model in VS Code and remove the space.
This should be fixed.
Thanks,
Tim
For others facing this issue, worked on small Tabular Editor 2 script to loop through all measures and removes last character if it happens to be whitespace. Saved me a lot of time if anyone needs it
foreach(var measure in Model.AllMeasures)
{
// Check if the measure name ends with a whitespace
if (measure.Name.EndsWith(" "))
{
// Remove the trailing whitespace and update the measure name
measure.Name = measure.Name.TrimEnd();
}
}
One solution is to trim the column spaces in Power Query.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |