Forum Discussion
Different Filed Name Between Power BI and Power Query
- 1 year ago
After submitting support ticket to MS Official, the support guide me to the answer.
In conclusion, it seems the issue I'm experiencing is a feature rather than a bug. And there is no an option to enable or disable it based on user preference. Manually renaming the fields again inside the Power BI model is the only way.
Hey PaiYa,
Cache Clear First: Always try clearing Power BI's cache (File > Options > Data Load > Clear Cache). It's often the culprit.
PQ Step Order: Make sure your RenameColumns step is after any filtering/removing steps that might use old names.
Simple Test: Try renaming just one problematic column in a new, simple query. Does that one stick?
Update Power BI: Old versions can have quirky bugs. Ensure your Desktop is current.
Last Resort: If nothing else, sometimes removing the column and immediately adding it back with the new name in PQ forces it.
Hope this helps you ditch the double-renaming!
Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Best regards,
Jainesh Poojara / Power BI Developer
- PaiYa1 year agoFrequent Visitor
Hi jaineshp, thanks for your reply.
- I don't find Clear Cache in Options. (My Power BI Desktop verson is the newest)
- Of course.
- Still no. I remain only one column and remove all transform step except Data Load and Rename.
- My Power BI Desktop verson is the newest.
- I am not sure about your word. When a column is removed, how could it added back?
- jaineshp1 year agoMemorable Member
Hey PaiYa,
Looking at your screenshots and the issue you're describing, this appears to be a known behavior with Dataverse/Dynamics 365 connections in Power BI. Let me provide you with some targeted solutions:Root Cause
This is a known issue with Dataverse connections where Power BI's metadata cache doesn't always reflect Power Query column renames, especially for system fields like accountid, name, etc.
Solution 1: Force Metadata Refresh (Recommended)
// In Power Query, after your rename step, add this:
= Table.TransformColumnTypes(#"Renamed Columns", {{"Account ID", type text}, {"Account Name", type text}})
This forces Power BI to recognize the new column names by explicitly setting data types.
Solution 2: Alternative Rename Method
Instead of Table.RenameColumns, try using Table.SelectColumns with new names:
= Table.SelectColumns(#"Previous Step", {
{"accountid", "Account ID"},
{"name", "Account Name"},
// Add other columns you need
})
Solution 3: Dataverse-Specific Workaround
= CommonDataService.Database("***.crm.dynamics.com", [
CreateNavigationProperties=false,
UseDisplayNames=false // Add this parameter
])Solution 4: Clear Power BI Cache (Correct Location)
The cache clearing option is actually here:
- File > Options and Settings > Options
- Data Load tab (left panel)
- Data Cache Management Options
- Click Clear Cache
Solution 5: Column Recreation Method
What I meant by "remove and add back":
- In Power Query, use Table.RemoveColumns to remove the problematic column
- Then use Table.AddColumn to create a new column with the desired name, copying data from another source column
- This forces a complete metadata refresh
// Example:
#"Removed Column" = Table.RemoveColumns(#"Previous Step", {"accountid"}),
#"Added Custom" = Table.AddColumn(#"Removed Column", "Account ID", each [accountid_backup])
Solution 6: Model-Level Fix
If Power Query renames still don't work:
- In the Model view, select the problematic columns
- In the Properties pane, change the Display Name
- This overrides the Power Query name for report purposes
Prevention Tips
- Always apply column renames as the last transformation step
- Avoid renaming Dataverse system columns if possible
- Use Display Names in the model instead for user-facing names
- Consider using calculated columns with DAX if renames persist in failing
Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Best regards,
Jainesh Poojara / Power BI Developer- PaiYa1 year agoFrequent Visitor
Hi jaineshp , thanks for your reply. Best Regards.
- Solution 1: In fact, I have "Change Type" step before. And I try again in the test File(I remain only one column and remove all transform step except Data Load and Rename.). Still no,
- Solution 2: It seems that you could not combine Remove Column and Rename Column in one step as this way.
- Solution 3:
- Solution 4: I found it! Clear Cache and refresh the data. Still no.
- Solution 5: still no.
- Solution 6: That's what I did. But as I said in the original post, " is inconvenient and may cause problems when making further updates.".
- I don't find Clear Cache in Options. (My Power BI Desktop verson is the newest)