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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
primolee
Helper V
Helper V

Calling function using Record.Field without using #shared

Hello everyone,

 

First of all, I would like to thank jborro and artemus for the great help that they contributed in my other post.  I think I am nearly there and I am posting this because this would be a different Power Query question.

 

I have learnt how to generate a record of my custom-made function names using the following, where GoogleXXXProcessors are the functions I made:

Output =
    [
        GoogleGSMDailyProcessor = (fileName as text, publisherName as text) => GoogleGSMDailyProcessor,
        GoogleGSMHourProcessor = (fileName as text, publisherName as text) => GoogleGSMHourProcessor,
        GoogleGDNDailyProcessor = (fileName as text, publisherName as text) => GoogleGDNDailyProcessor,
        GoogleGDNAdGroupProcessor = (fileName as text, publisherName as text) => GoogleGDNAdGroupProcessor,
        GoogleGDNSizeProcessor = (fileName as text, publisherName as text) => GoogleGDNSizeProcessor
    ]

 

As #shared will not work in Power BI Service, I need to manually build this record.

 

Original code:

#"Invoked Custom Function" = 
        Table.AddColumn(#"Previous Step", "Processed Tables", each Record.Field(#shared, _[Processor])(_[Folder Path] & _[Name], _[Publisher]))

Then I will get a column with Table as values:

codeWithShared.jpg

 

Code using manually-created record Output:

#"Invoked Custom Function" = 
        Table.AddColumn(#"Previous Step", "Processed Tables", each Record.Field(Output, _[Processor])(_[Folder Path] & _[Name], _[Publisher]))

Then I will get a column with Function as values:

codeWithManualRecord.jpg

 

 

What should I do to make the value of this column to table as it should be?

 

Thank you so much for your help.

 

Best regards,

David

1 ACCEPTED SOLUTION
primolee
Helper V
Helper V

I think I found the solution...

 

Simply modify the Output record code to the following, no need to put parameters at all.

    Output =
    [
        GoogleGSMDailyProcessor = GoogleGSMDailyProcessor,
        GoogleGSMHourProcessor = GoogleGSMHourProcessor,
        GoogleGDNDailyProcessor = GoogleGDNDailyProcessor,
        GoogleGDNAdGroupProcessor = GoogleGDNAdGroupProcessor,
        GoogleGDNSizeProcessor = GoogleGDNSizeProcessor
    ],

 

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @primolee ,

 

Thanks for share your solution here. That will help other members here if they have the same request.

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
primolee
Helper V
Helper V

I think I found the solution...

 

Simply modify the Output record code to the following, no need to put parameters at all.

    Output =
    [
        GoogleGSMDailyProcessor = GoogleGSMDailyProcessor,
        GoogleGSMHourProcessor = GoogleGSMHourProcessor,
        GoogleGDNDailyProcessor = GoogleGDNDailyProcessor,
        GoogleGDNAdGroupProcessor = GoogleGDNAdGroupProcessor,
        GoogleGDNSizeProcessor = GoogleGDNSizeProcessor
    ],

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.