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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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?

Anonymous
Not applicable

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

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors