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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create Custom Function to Filter Main Table and use it as filter reference

Hello,

 

I'm connecting to a > 10 GB dataflow and it's problematic as sometimes I just need to some specific range in dates and filter some categorical columns. Trying my luck here but it is possible to create a function that filters a table and use that same table as a way to create some level of data validation for me to filter first in the function before I load the humongous data?

 

Example:

*Imagine the data has this column

DateCategory 1Category 2
1/18/2021CatNS
10/27/2021DogNS
10/7/2022DogNS
11/13/2021DogUS
11/25/2022DogUS
2/4/2022DogUS
3/14/2021CatUS
3/3/2022CatUS
4/22/2022CatRU
5/9/2021CatUS
7/15/2022DogRU
7/17/2021DogUS
7/27/2021CatUS
8/29/2021CatUS
9/14/2022CatUS

 

The Function should Dynamically create these following fields (or if not possible, reference it):

LSMaku_0-1671022383304.png

Then "Run" the function and output the filter data

 

Edit 1: If this is not possible, can anyone provide a workaround to have the data filtered first before actually loading the data from dataflow?

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

If this Dataflow in in a Workspace backed by Premium (and you use the new Dataflows connector), you can turn on the Enhanced Compute Engine so that query folding can take place.

Chris Webb's BI Blog: How Query Folding And The New Power BI Dataflows Connector Can Help Dataset Re...

Pat

Microsoft Employee
Anonymous
Not applicable

Unfortunately, I'm only on Pro License. It would be great to have tho.

 

But thanks, this is informative! Hopefully there's just a way to reduce the data without needing to filter it in power query as I'm planning to deploy it publicly and those who will be utilizing the data might need to really wait for things to load before they can actually get the data they need 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.