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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
abatahir
Helper I
Helper I

alternative for speed up

hi, 

I am using the following code after merger two able to populate the data from 2nd table based on the condition. but this code makes the power query very slow, anyone has an alternative for this in Power Query or Power Pivot. 

 

= Table.AddColumn("subsidy_merger", "Custom", each let SaleDate = [CreatedDate] in
Table.SelectRows( [Subsidy], each [Staring date] <= SaleDate and [Ending date] >= SaleDate))

 

2 REPLIES 2
Anonymous
Not applicable

Well I'm pretty sure your "in"statement should refer to a variable from your "let" variables. Are you doing this operation on the nested table column? If so, whatever operation you do is going to iterate over every nested table. You are better off Duplicating this table after the merge, and then applying your date filter, and then expanding your Created Date field, if I am understanding the desired result correctly. I am assuming you need to keep all of the original rows, otherwise you would just apply your filter before the merge...

 

--Nate

yes I am using it nested, the first table is the sales table 2nd table is the commission table, the commission on 2nd table is different on each for the same product, So by doing the above-mentioned operation I am expanding 2nd table to get the commission rate of that sale date for each product. 

important both tables have multiple items so it is not unique, 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Kudoed Authors