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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Greg_Deckler
Community Champion
Community Champion

Updating FormatString from external tool does not update Power BI Desktop

OK, so I have a C# WPF external tool built for Power BI. Basically, a metadata editor. Everything works editing the metadata except the FormatString for Columns and Measures. But here's the thing, if I set a custom format string for a column or measure, the custom format string is changed such that if I am in Power BI Desktop and change the Format from something like General to Custom, then the custom format string is there and works. But, Power BI Desktop does not automatically recognize that the format should be Custom.

 

Even weirder. If I change a DateTime column from Short Date to Long Date, I can see that the change happened in Tabular Editor but Power BI Desktop continues to display Short Date instead of Long Date.

 

Was curious if anyone knew of why FormatString is acting like this. Again, everything else works, I can hide tables/columns/measures, set the Description and even change the home tables of measures. But FormatString is just acting weird. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

OK, so after struggling with this most of yesterday and today, I finally figured it out. You have to remove the Format annotation from the object to force Power BI Desktop to update. So:

 

metadataobject.Annotations.Remove("Format")



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

OK, so after struggling with this most of yesterday and today, I finally figured it out. You have to remove the Format annotation from the object to force Power BI Desktop to update. So:

 

metadataobject.Annotations.Remove("Format")



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.