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
Peddakiran
New Member

Unable to "Apply Query Changes".

desk.png

But when I click on "Close and Apply", I got following error msg.

 

err.png

Would you mind to explain me my mistakes ?

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @Peddakiran,

 

In your scenario, the issue can be caused by that the column "Country Name" contains distinct values before you change the query for table "Country Population", and this column is used as a primary key to related to another table with One-Many relationship. You can click the Manage Relationships button to check relationship definition like below:

 

q1.PNG

 

In your scenario, if you want to apply the query change, you need to break the relationship between the table "Country Population" and it's related tables. After applying the query change, you can recreate the relationship between this table with others.

 

Reference:
Create and manage relationships in Power BI Desktop

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @Peddakiran,

 

In your scenario, the issue can be caused by that the column "Country Name" contains distinct values before you change the query for table "Country Population", and this column is used as a primary key to related to another table with One-Many relationship. You can click the Manage Relationships button to check relationship definition like below:

 

q1.PNG

 

In your scenario, if you want to apply the query change, you need to break the relationship between the table "Country Population" and it's related tables. After applying the query change, you can recreate the relationship between this table with others.

 

Reference:
Create and manage relationships in Power BI Desktop

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
KHorseman
Community Champion
Community Champion

You have a relationship between this table and another table. One of those tables must have unique values for that connected column. If Canada shows up multiple times in both tables, you cannot create that relationship.





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

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors