Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
berezinskiy-p
New Member

Expression.Error: A cyclic reference was encountered during evaluation.

Hello!

May i ask you about error "Expression.Error: A cyclic reference was encountered during evaluation"?

Whre did it find a cycle?

 

= let 
   yesterday = Date.ToText(Date.AddDays(DateTime.Date(DateTime.LocalNow()),-1),"yyyy-MM-dd"),
    Source = Json.Document(Web.Contents("https://URL/api/v4/orders?filter[createdAtTo]="&yesterday&"&page=1&limit=100&apiKey=KEY")),
    #"Converted to Table" = Record.ToTable(Source),
    Value = #"Converted to Table"{1}[Value],
    #"Converted to Table1" = Record.ToTable(Value),
    #"Filtered Rows" = Table.SelectRows(#"Converted to Table1", each ([Name] = "totalPageCount")),
    #"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows",{{"Value", type number}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"Name"}),
    TotalPageCount = #"Removed Columns"{0}[Value],
    #"Page" = List.Numbers(1,TotalPageCount),
    #"Converted to Table2" = Table.FromList(Page, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Renamed Columns" = Table.RenameColumns(#"Converted to Table2",{{"Column1", "Page"}}),
    #"Added Custom" = Table.AddColumn(#"Renamed Columns", "Custom", each RetailCRMOrderAPI([Page])),
    #"Expanded Custom1" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Column1"}, {"Column1"})
in #"Expanded Custom1"

 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @berezinskiy-p 

 

Please check the steps in the 'Applied Steps' area in Query editor to find which step is the problem. You may click from the upper step to the lower step in turn, and see which step appears the corresponding error message.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @berezinskiy-p 

 

Please check the steps in the 'Applied Steps' area in Query editor to find which step is the problem. You may click from the upper step to the lower step in turn, and see which step appears the corresponding error message.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.