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
haassiej
Helper I
Helper I

Power BI relationships dataflow CDM

Hi all,

 

I've some issues with working with the CDM, dataflows and the relationships defined in the model.json.

 

The first step is getting the data from Dynamics to my Azure Data Lake gen 2 in the CDM folders:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/entity-store-data-...

 

Then I create a dataflow in the Power BI service on this folder:

https://docs.microsoft.com/en-us/power-bi/transform-model/service-dataflows-add-cdm-folder#create-a-...

 

Afther this step I connect to my dataflow in Power BI desktop:

https://docs.microsoft.com/en-us/power-bi/transform-model/service-dataflows-create-use

 

But the relationships defined in the model.json are not correct handled in Power BI desktop. Does someone know how I can fix this?

 

The model.json relationships are generated well by Dynamics. (See: https://docs.microsoft.com/en-us/common-data-model/model-json#relationships)

 

Model.json relationships:

json relation.png

 

Power BI desktop relationships:

pbi relation.png

4 REPLIES 4
dafrAdifo
New Member

Any news here? I have the exact same problem. 

 

Thanks in advance

Still no movement 3 years later?

v-jayw-msft
Community Support
Community Support

Hi @haassiej ,

 

Sorry, I couldn't find where "the relationships defined in the model.json are not correct handled in Power BI desktop", can you give me a hint?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

In the model.json file, relationships are written between certain entities from Dynamics (the Common Data Model (CDM)). So you would expect that if you connect Power BI to your "model.json" file, the relationships will be included in Power BI.

 

That does not happen now, so you have to manually establish all relationships yourself. In my case more then 60 relations.

 

In the example of the relationships in model.json you see a relationship of:

AssetTransactionSummaryEntity: TransDate
to
FixedAssetTransactionDate: Date_

 

Power BI does not recognize this relationship described in the JSON. Power BI itself searches for relationships and comes up with the relationship "ROW_UniqueKey" to "Row_UniqueKey"

 

So it doesn't read the relationships from the generated model.json

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.