Forum Discussion
Power M - Cyclic Reference encountered during evaluation
- 5 years ago
Thanks.
Think you were right the issue was the source was not correct.
I followed the video below, checked the syntax of the code for example below and it works.
Table.ReplaceValue(#"Removed Columns",null,"0",Replacer.ReplaceValue,{Table.ColumnNames(#"Removed Columns"){3}, Table.ColumnNames(#"Removed Columns"){4}, Table.ColumnNames(#"Removed Columns"){5}})
You need to replace the table references with tables that occur before the transformation. Like this:
= Table.ReplaceValue(#"Removed Columns",null,"0",Replacer.ReplaceValue,Table.ColumnNames(#"Removed Columns")
If you want to reference GPL Adjustments 4 and 5 you need to make sure you reference them at a step where your current table has not affected the transformation stages yet.
Br,
J
Ah okay I think I see so it has to flow from the last transformation.
So it would be like
{Table.ColumnNames(#"Removed Columns"){4}, Table.ColumnName(#"Removed Columns"){5}}