Forum Discussion
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.
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!
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 ) )
2 Replies
- DataInsightsSuper 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 ) ) - AnonymousNot 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