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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mahenkj2
Solution Sage
Solution Sage

Avoid cyclic reference in power query in this scenario

Hello,

I am using a web api connection and it has 'StartDate" and "EndDate" in its string. At every scheduled daily refresh, I need to fetch only one day data and store it in the report with existing data, so my query cost is always one day data at the max.

 

I have tried couple of ways, one with parameters wherein I stored StartDate and EndDate and used both in web api. Upon fetching the data, I append the data to master table. But this is the same table from I fetched max date of the record to use in web api.

 

So as one may realize this is circular reference. I get the max date from a record table, use to fetch data from external source and append in the same table again.

 

This gives me following error: An error occurred in the ‘Goa-Daily’ query. Expression.Error: A cyclic reference was encountered during evaluation.

 

To avoid, I did few things, like using all transformation in single query, ignore privacy settings etc. but nothing helps. I think I need to somehow isolate current state of reference table and then upon scedhule refresh (or ordinary refresh) add the data to it and stop. But I could not find how to achieve that?

 

Thanks.

 

1 REPLY 1
mahenkj2
Solution Sage
Solution Sage

Any suggestions to resolve this please?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors