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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
steph_io
Advocate II
Advocate II

how do i use the CDS display name for custom entities in power bi

How do I use the display name of the fields of a CDS custom entity?

I am using the Common Data Service connector in Power BI Desktop tool. When I connect to to a custom table, the Advanced setting of 'Add display column (optional)' that is default set to true, but it seems to not work. 

Is there M code or functions that I can use to import the display name of fields, rather than the cr6a2_fieldname of the cds custom entity?

 

Thanks

1 ACCEPTED SOLUTION

It looks like this isn't supported directly for your dataset. You would need to create a manual query to CDS to get the mapping from name to display name.

 

The URL for getting this data would look something like (you can use a network sniffer or possibly look at the logs to find this out):

 

https://endpoint.com/EntityDefinitions

Query:

$select=Attributes

$expand=Attributes($select=AttributeType,LogicalName,IsValidForRead)

$filter=SchemaName eq <your schema>

Headers:

Accept=application;json;odata.metadata=none

OData-MaxVersion=4.0

Perfer=odata.include-annotations="-*"

View solution in original post

3 REPLIES 3
artemus
Employee
Employee

This happens if there is no readable fields with attributes of type Packlist, State, or Status. Can you provide a sample of the attributes on the table you are looking at?

CDS Budget Project Entity.PNG

It looks like this isn't supported directly for your dataset. You would need to create a manual query to CDS to get the mapping from name to display name.

 

The URL for getting this data would look something like (you can use a network sniffer or possibly look at the logs to find this out):

 

https://endpoint.com/EntityDefinitions

Query:

$select=Attributes

$expand=Attributes($select=AttributeType,LogicalName,IsValidForRead)

$filter=SchemaName eq <your schema>

Headers:

Accept=application;json;odata.metadata=none

OData-MaxVersion=4.0

Perfer=odata.include-annotations="-*"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors