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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.