Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hi All,
I have a complex working dashboard created by an ex-employee, and I now wish to alter the data source, without needing to change the visuals.
I assumed that, so long as the column names end up the same, I could replace the query in the Advanced Editor, and the visualls would all work.
When I do this and CLose, I get the error message "The name "Contact Person" is already used for a column on the table "Business Info".
I interpret this to mean the Query is not self-contained, i.e. column info is somehow stored outside the query and not recreated when the query changes.
Is there a way to change the source of the query whilst not affecting the UI?
Here is my new query, it returns exactly the same column names as the resultant dataset of the previous query.
let
Source = Csv.Document(File.Contents("C:\Data\FullABR\ABR.CSV"),[Delimiter=",", Columns=46, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Use First Row as Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
#"Use First Row as Headers"
Here is the previous query
let
Source = RA,
#"Appended Query" = Table.Combine({Source, RB, RC, RD, RE, RF, RG, RH, RI, RJ, RK, RL, RM, RN, RO, RP, RQ, RR}),
--
-- (some columns reformatted etc)
--
#"Renamed Columns2" = Table.RenameColumns(#"Added Conditional Column1",{{"Business Location - Postcode", "Postcode"}})
in
#"Renamed Columns2"
Thanks Liu I will investigate your solution. The error message says "i already in use on this table", but you are saying the error is wrong, it should say " already in use elsewhere in the dashboard". I will check it out.
Hi @Anonymous ,
Based on your error message, you supposes change a column name which exists in a table already. And you may also have reference to this column in some calculations within other dataset so that other tables will also throw error related to this column. Make sure your change the name of this referenced column in all measures/calculated columns.
This is the related document, you can view this content:
https://community.powerbi.com/t5/Desktop/Append-queries-error-Name-is-already-used/td-p/852274
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
80 | |
65 | |
52 | |
49 |
User | Count |
---|---|
212 | |
89 | |
79 | |
68 | |
60 |