Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DemoFour
Responsive Resident
Responsive Resident

Dataverse Field names changing

Hi all, 

I am aware of this thread and solution suggested, which does not sort the issue. 

My issue is that the Dataverse developers are using _ and CamelCase names and I don't want these in the report, as there is no consistency.  Also this is not happening on all changes to field names. 

So how can I stop this happening? 


Dataverse Error Forum.jpg


Table.RenameColumns(#"Removed Other Columns",{{"new_auditid", "Audit Key"}, {"createdon", "Record Created On"}, {"new_audit_id", "Audit ID"}, {"cr5cd_raisedby", "Raised by Key"} . . . . .

 

Has anyone got a better solution and fix - and no I can't change in Dataverse as this a canvas app in production, and don't even get me started on sloppy contractor work in the first place not build things properly!! 

1 ACCEPTED SOLUTION

HI @DemoFour,

In fact, I mean you can create some dummy data with raw table structure and share the expected result. Then we can use these sample data and follow result snap to test code formulas.

In my opinion, If you want to show some information that include in the field names, you can try to create a dictionary table with default field names. Then you can refer the following links to use template table name or values in M query rename function to dynamic rename table field names.

Solved: PQ - Rename Column Names based of column names fro... - Microsoft Fabric Community

Solved: Dynamically changing name ofthe column header - Microsoft Fabric Community

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @DemoFour ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Good morning @v-shex-msft   Thank you for your reply.  Unfortunately, I cannot send you a P.BIX as I can not expose the dataverse instance and data.  

I can however supply my M code, this is very simple UI and changed field names code, nothing I write myself in M.  Alternatively, I can raise this internally with Microsoft support and link you in if that is a better solution to test out the coding etc. I have used? 

Thank you for your response 

HI @DemoFour,

In fact, I mean you can create some dummy data with raw table structure and share the expected result. Then we can use these sample data and follow result snap to test code formulas.

In my opinion, If you want to show some information that include in the field names, you can try to create a dictionary table with default field names. Then you can refer the following links to use template table name or values in M query rename function to dynamic rename table field names.

Solved: PQ - Rename Column Names based of column names fro... - Microsoft Fabric Community

Solved: Dynamically changing name ofthe column header - Microsoft Fabric Community

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.