<?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 Using getDataFieldDisplayName for Field Paramter does not return correct values in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5146303#M64854</link>
    <description>&lt;P&gt;I am trying to extract the display names of the fields being used in a visual from a Power BI embed. I am using the getDataFieldDisplayName function from the power bi authoring library. However this does not seem to work correctly on Field Parameters.&amp;nbsp;&lt;BR /&gt;In the first instance (Image #1)&amp;nbsp;&lt;SPAN&gt;I have dragged a field parameter into a table visual. When i get the datafields in the table visual I can see all the currently selected fields activated by the slicer. But when i try to fetch the displayNames for those fields it returns correctly for the first field but throws an undefined error for the rest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In a second instance (Image #2)&lt;BR /&gt;I have added two fields "Currency" and "FileType" from the Field parameter and a third field "File Name" directly from the model (not from the field parameter). In this case File Name is being returned as the display name for the second "File Type" field.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could someone please explain this behaviour or suggest any alternative methods to get the display names of the fields accurately.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image #1" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1332948iF3F8486DA3270E4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image1.png" alt="Image #1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Image #1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image #2" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1332947i59D6FA08133973B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image2.png" alt="Image #2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Image #2&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2026 06:39:00 GMT</pubDate>
    <dc:creator>rohann</dc:creator>
    <dc:date>2026-04-10T06:39:00Z</dc:date>
    <item>
      <title>Using getDataFieldDisplayName for Field Paramter does not return correct values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5146303#M64854</link>
      <description>&lt;P&gt;I am trying to extract the display names of the fields being used in a visual from a Power BI embed. I am using the getDataFieldDisplayName function from the power bi authoring library. However this does not seem to work correctly on Field Parameters.&amp;nbsp;&lt;BR /&gt;In the first instance (Image #1)&amp;nbsp;&lt;SPAN&gt;I have dragged a field parameter into a table visual. When i get the datafields in the table visual I can see all the currently selected fields activated by the slicer. But when i try to fetch the displayNames for those fields it returns correctly for the first field but throws an undefined error for the rest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In a second instance (Image #2)&lt;BR /&gt;I have added two fields "Currency" and "FileType" from the Field parameter and a third field "File Name" directly from the model (not from the field parameter). In this case File Name is being returned as the display name for the second "File Type" field.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could someone please explain this behaviour or suggest any alternative methods to get the display names of the fields accurately.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image #1" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1332948iF3F8486DA3270E4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image1.png" alt="Image #1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Image #1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image #2" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1332947i59D6FA08133973B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image2.png" alt="Image #2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Image #2&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 06:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5146303#M64854</guid>
      <dc:creator>rohann</dc:creator>
      <dc:date>2026-04-10T06:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using getDataFieldDisplayName for Field Paramter does not return correct values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5146632#M64859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1571221"&gt;@rohann&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp; for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Field Parameters are dynamic, so they don’t behave like normal columns. Because of that, getDataFieldDisplayName is not able to correctly return the display name for all the fields coming from the parameter.&lt;/P&gt;
&lt;P&gt;That’s why you are seeing First field name coming correctly, but others showing undefined and When mixing parameter fields with a normal column, the display name getting mapped incorrectly&lt;/P&gt;
&lt;P&gt;So the issue is not with your code. It happens because the API reads static metadata, while Field Parameters switch fields dynamically at runtime. For now, you may need to rely on the information from getDataFields() and handle the display name mapping manually on your side.&lt;BR /&gt;&lt;BR /&gt;Hope the above provided information help you resolve the issue, if you have any further concerns or queries, please feel free to reach out to us.&lt;BR /&gt;Regards,&lt;BR /&gt;Community Support Team.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 12:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5146632#M64859</guid>
      <dc:creator>v-hjannapu</dc:creator>
      <dc:date>2026-04-10T12:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using getDataFieldDisplayName for Field Paramter does not return correct values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5146744#M64862</link>
      <description>&lt;P&gt;Thanks for the prompt reply.&lt;BR /&gt;Is this some kind of documented limitation? Since I did not find any. Or is this just found by exploration.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 14:16:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5146744#M64862</guid>
      <dc:creator>rohann</dc:creator>
      <dc:date>2026-04-10T14:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using getDataFieldDisplayName for Field Paramter does not return correct values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5147638#M64868</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1571221"&gt;@rohann&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;No, there isn't any official Microsoft documentation that explicitly states this as a limitation. I simply observed it from my understanding and working knowledge of how Field Parameters work they are resolved dynamically at runtime and how the authoring APIs operate (they rely on static metadata).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Community Support Team.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 11:49:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5147638#M64868</guid>
      <dc:creator>v-hjannapu</dc:creator>
      <dc:date>2026-04-13T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using getDataFieldDisplayName for Field Paramter does not return correct values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5151188#M64897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1571221"&gt;@rohann&lt;/a&gt;,&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Community Support Team.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 11:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-getDataFieldDisplayName-for-Field-Paramter-does-not-return/m-p/5151188#M64897</guid>
      <dc:creator>v-hjannapu</dc:creator>
      <dc:date>2026-04-16T11:58:54Z</dc:date>
    </item>
  </channel>
</rss>

