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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Table relationship inbetween

Hey there Community,

 

I am relatively new to PowerBI, therefore I'd really appreciate the help.

I am currently trying to create a dashboard for my real estate company with data out of dynamics 365 and additionally some excel sheets. In the attached screenshot to see the relationship. 

 

powerBI.JPG

 

I'd like to visualize how often certain realestateobjects are requested by leads. Unfortuntely I can't seem to do so and I belive this is due the leads and ink_realestateobjects entities not being related directly, but only via this table inbetween ink_lead_ink_realestateobjectset, which stores the primary keys of the two entities. 

Could please tell me how I could go about solving this?

Thanks in advance!

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Anonymous,

 

You could use the CROSSFILTER function inside CALCULATE:

 

Count Real Estate Objects =
CALCULATE (
    COUNT ( ink_realestateobjects[ink_realestateobjectid] ),
    CROSSFILTER ( ink_lead_ink_realestateobjectset[ink_realestateobjectid], ink_realestateobjects[ink_realestateobjectid], BOTH )
)

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

Can you please share a pbix file with some dummy data(keep the raw data structure) and expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

DataInsights
Super User
Super User

@Anonymous,

 

You could use the CROSSFILTER function inside CALCULATE:

 

Count Real Estate Objects =
CALCULATE (
    COUNT ( ink_realestateobjects[ink_realestateobjectid] ),
    CROSSFILTER ( ink_lead_ink_realestateobjectset[ink_realestateobjectid], ink_realestateobjects[ink_realestateobjectid], BOTH )
)

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.