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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mweel111
New Member

Having problems with relationships

I have the following relationships.

 

Appointment has 1 Clinic

Patient has 1 Clinic

 

I'm trying to create a cube that has the patient and their count of appointments.

 

However when I get the appointments filtering down on the patient.  They are totals (Patient A, 20, Patient B, 20, etc.)  My first instinct obviouls would be to create a relationship between the Patient and Appointments as 1 Patient has many Appointments.

However when I try and do this it says there is an ambigious relationship because of the clinic relationship.  I would think the BI would use that relationship to filter the correct appointments but it doesn't.   How do I approach solving this issue?

 

Thank you in advance.

 

1 REPLY 1
v-zhouwen-msft
Community Support
Community Support

Hi @mweel111 ,

Regarding your question, can you say what fields are in both tables? By which fields are the two tables connected? When creating table-to-table relationships.It is better to have a star model consisting of a fact table with multiple dimension tables.

Model relationships in Power BI Desktop - Power BI | Microsoft Learn

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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