<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Updating FormatString from external tool does not update Power BI Desktop in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Updating-FormatString-from-external-tool-does-not-update-Power/m-p/2390629#M34925</link>
    <description>&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;metadataobject.Annotations.Remove("Format")&lt;/P&gt;</description>
    <pubDate>Sun, 13 Mar 2022 17:43:06 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-03-13T17:43:06Z</dc:date>
    <item>
      <title>Updating FormatString from external tool does not update Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-FormatString-from-external-tool-does-not-update-Power/m-p/2390590#M34924</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 15:33:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-FormatString-from-external-tool-does-not-update-Power/m-p/2390590#M34924</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-03-13T15:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Updating FormatString from external tool does not update Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-FormatString-from-external-tool-does-not-update-Power/m-p/2390629#M34925</link>
      <description>&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;metadataobject.Annotations.Remove("Format")&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 17:43:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-FormatString-from-external-tool-does-not-update-Power/m-p/2390629#M34925</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-03-13T17:43:06Z</dc:date>
    </item>
  </channel>
</rss>

