Forum Discussion
Apply Query Changes ran multiple times
- 6 years ago
Well, I removed the two "rename columns" steps and then refreshed the report, it only ran once. Not sure if this was the reason for loading data twice, but if you come across the same issue, it's worth giving it a try.
Hmm, not enough info to go on here, why do you think it is running multiple times, what does your query look like? Paste the M code from Advanced Editor.
Hi Greg_Deckler ,
I saw it loading up to 4.5 million rows and then back to 1k rows....
Here is the M code:
let
Source = Sql.Database("SQL03", "EDM", [Query="SELECT * FROM vw_Sales"]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Master Account No", Int64.Type}}),
#"Rename Columns" = Table.RenameColumns( #"Changed Type", List.Zip({tHeaderConversion[New columns], tHeaderConversion[Old columns]})),
#"Rename Columns Rev" = Table.RenameColumns( #"Rename Columns", List.Zip({tHeaderConversion[Old columns], tHeaderConversion[New columns]})),
#"Renamed Columns" = Table.RenameColumns(#"Rename Columns Rev",{{"Adj cCOGS Ledger Currency", "Adj cCOGS Ledger Currency_o"}, {"Adj Gross Sales Ledger Currency", "Adj Gross Sales Ledger Currency_o"}, {"cCOGS Adjustment Ledger Currency", "cCOGS Adjustment Ledger Currency_o"}})
in
#"Renamed Columns"