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
Anonymous
Not applicable

Cyclic reference error invoke custom function using parameters

Hi, 

 

I am having an cyclic reference error when I am trying to invoke a custom function useing parameters:

 

let
Source = Excel.Workbook(File.Contents("C:\Users\ldeoliv\OneDrive - Rockwell Automation, Inc\DATES.xlsx"), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
WHStarts = Number.From(WHStart),
WHEnds = Number.From(WHEnd),
#"Promoted Headers" = Table.PromoteHeaders(#"Sheet1_Sheet",[PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"DATE_COMPLETE", type datetime}, {"DATE_INPROCESS", type datetime}}),
#"Invoked Custom Function" = Table.AddColumn(#"Changed Type", "fWH", each fWH(WHStarts, WHEnds, [DATE_INPROCESS], [DATE_COMPLETE], Holidays))
in
#"Invoked Custom Function"

 

Someone could help me?

Thanks

1 REPLY 1
Anonymous
Not applicable

HI @Anonymous ,

I'm not so clear for your custom functions, can you please share more about this?

How to Get Your Question Answered Quickly

Regards,

Xiaoxin Sheng

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.

Top Solution Authors