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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
busybee
Helper I
Helper I

Invoking Custom Function

I am having difficulty invoking custom function on my parameters. I have downloaded a Sample Financial Data.xlsx file. In my Practice.pbix file, I imported the financials sheet of the xlsx file. I wanted to create 2 dynamic parameters, Month1 Parameter and Month2 parameter. So I imported a second copy(financials Copy), created Query1 to get a distinct list of the Month Name column. Both the parameters use the query as source data. 

 

On my financials query, I have created 2 calculated columns, Month1 Sales and Month2 Sales that return the Sales for that month based on the 2 parameter values. On the same query, I have created a custom function SetMonthNames that utilize the 2 parameters created above. 

 

To get my final output dynamically, I have imported the financials worksheet again(financials Third). I created a Final Output table. It consists of Month1 Name and Month2 Name columns which dynamically import a distinct list of the Month Name column from the financials Third query. When I click on the Final Output query and Invoke Custom Function SetMonthNames Power BI gives the following error. Formula.Firewall:Query 'Final Output' references other queries or steps.


Any suggestions on how to solve this? 

 

Practice.pbix 

Financial Sample.xlsx 

1 ACCEPTED SOLUTION
v-joesh-msft
Solution Sage
Solution Sage

Hi @busybee ,

You can try the following methods:

1. File -> Options -> Privacy -> Select “Ignore Privacy Levels”

1.PNG

2. Refer to the resources below:

Power Query Errors: Please Rebuild This Data Combination

Formula.Firewall Error in Power Query

Best Regards,
Community Support Team _ Joey
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-joesh-msft
Solution Sage
Solution Sage

Hi @busybee ,

You can try the following methods:

1. File -> Options -> Privacy -> Select “Ignore Privacy Levels”

1.PNG

2. Refer to the resources below:

Power Query Errors: Please Rebuild This Data Combination

Formula.Firewall Error in Power Query

Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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