Forum Discussion
Expression.Error: A cyclic reference was encountered during evaluation.
- 4 years ago
Hi banav ,
According to your description, you only want to keep the Name and Age columns.
In your query steps, the previous step of Custom1 is "Changed Type", so in the Table.SelectColumns function, you should choose the #"Changed Type" as the table, but not the original "Data_Table", like this:
= Table.SelectColumns(#"Changed Type",{"Name","Age"})Or you can create a blank query, insert the formula:
= Table.SelectColumns(Data_Table,{"Name","Age"})Get the correct result.
About the Applied steps, you can refer to this document: Applied steps - Power Query | Microsoft Docs
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
I am facing similar issue while creating the function Where I am looking to Group using Internal ID of the table and SUM values of one of the coloumn while filtering some other coloumns.
Below is the Mcode: = Table.AddColumn(#"Added Conditional Column", "Custom.1", each Table.AggregateTableColumn(#"Demand Fcst Raw Outputs (2)",[Internal ID],
List.Sum[Forecast],[Week Number]=Date.WeekOfYear(DateTime.LocalNow()) and [Week Number]=(Date.WeekOfYear(DateTime.LocalNow())+5)
))
I am facing cyclic reference was encountered in the above expression. How can I resolve it?
Hi! Were you able to resolve this issue? I have a similar problem I am trying to solve.