This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi! Question: I have some data in an external database, which I can query in PowerBI through DirectQuery. However, I also have a UDF (user defined function) in that external database that takes some input parameters and then performs a Select query and returns the results the way a normal select query would do. Is it in any way possible to call this UDF from PowerBI? All I've found so far is how to use SQL/DAX to write a new query, but I already have my (complicated) query in that UDF and I don't want to rewrite it in each external tool that needs to use it. Thanks!
Solved! Go to Solution.
@aspendus You can make a parameterized view that uses your function, then PBI thinks it's a regular select query
There's a little information here. https://docs.microsoft.com/en-us/power-bi/guidance/power-query-folding
@aspendus You can make a parameterized view that uses your function, then PBI thinks it's a regular select query
There's a little information here. https://docs.microsoft.com/en-us/power-bi/guidance/power-query-folding
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 23 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 46 | |
| 19 | |
| 18 | |
| 18 |