Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
So there I was...
It started out as a great day. The sun was shining, the coffeemachine was recently topped up, and I was ready to go kick some &^% in Power BI.
The first mission of the day: Add 2 columns to every table, and provide them with a simple value for use in filtering later on. After adding these 2 columns to every table, it was time to apply the changes and quit power query....
This is when disaster struck.
It is complaining that it can't apply the changes to 7 out of 8 sheets, due to the fact that these columns are exactly alike (which was the whole point). Power BI kindly asks me to rename these columns, but that would destroy the purpose. After giving Power BI the finger, it was time to turn to the pro's.
This is where you guys come in:
What the actual beep is happening here?
Solved! Go to Solution.
Hi @John_Doe3,
Actual source code means the code that was already there in the Advanced Editor for your table before you make any changes.
When you open the Advanced Editor, you can see some code which is already present, some thing like below:
Copy everything between the let and in lines and just replace it here
“Source = YourExistingSourceStep,” and complete the code as I mentioned above .
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi @John_Doe3 ,
What’s likely happening is that Power BI is trying to auto-detect relationships between your tables based on the identical column names you added. When it sees the same column name across multiple tables, it tries to create relationships automatically – and that’s where things break.
Here’s what you can do:
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI
This didnt do the trick. It returns the exact same result. I'm not familiar with DAX coding at all, I have no idea how I would go about this using that method.
Hi @John_Doe3,
Thank you for reaching out to Microsoft Fabric Community.
The issue here is that power query is conflicting internally when the same column names are added across multiple tables. So to resolve it without using DAX, please follow below steps:
let
AddFilterColumns = (inputTable as table, filterValue1 as text, filterValue2 as text) =>
Table.AddColumn(
Table.AddColumn(inputTable, "CustomFlag1", each filterValue1),
"CustomFlag2", each filterValue2
)
in
AddFilterColumns
This creates a function that you can reuse across multiple tables.
let
Source = YourExistingSourceStep,
Transformed = AddFilterColumns(Source, "West", "Sales")
in
Transformed
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
At risk of sounding like somebody who doesn't know dax coding, what is my "actual source code"?
Hi @John_Doe3,
Actual source code means the code that was already there in the Advanced Editor for your table before you make any changes.
When you open the Advanced Editor, you can see some code which is already present, some thing like below:
Copy everything between the let and in lines and just replace it here
“Source = YourExistingSourceStep,” and complete the code as I mentioned above .
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi @John_Doe3,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @John_Doe3,
We wanted to kindly follow up to check if the solution I have provided for the issue worked.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @John_Doe3,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
That's one hell of a quick reply, good sir.
I'm trying to locate the checkbox "Auto detect new relationships after data is loaded", but this doesn't appear to be present.
Aha. it is in current file, not under global. brb
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |